Download the PHP package actra/yuf without Composer

On this page you can find all versions of the php package actra/yuf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yuf

yuf - A Smart, Fast, and Lightweight PHP Framework

yuf (pronounced "[jʌf]" or "[jʊf]") is a smart, fast, and lightweight PHP framework designed with a focus on simplicity and performance. It has zero external dependencies, other than the actra/autoloader library which is required for all setups.

Key Features

Requirements

Installation

Install yuf and actra/autoloader via Composer or download them manually. Note that yuf always requires actra/autoloader to be manually initialized.

Via Composer (Recommended)

Manual Installation

  1. Download the source code from GitHub.
  2. Download actra/autoloader (https://github.com/Actra-AG/autoloader) and place it in your project.
  3. Reference the Autoloader.php when initializing the Core class.

Quick Start

  1. Create a .env.php file based on .env.example.php.
  2. Create an index.php in your document root based on index.example.php.
  3. Initialize the Framework Core and provide the path to Autoloader.php if not using the default.

Database Query Helpers

DbQuery can be created from an SQL query and extended dynamically before execution.

addJoinPart() appends joins between the FROM and WHERE parts and accepts parameters in the same way as addWherePart(). Every added part must contain exactly one parameter per ? placeholder, and each condition added with addWherePart() is wrapped in parentheses before the conditions are combined with AND.

addOrderPart() only accepts columns consisting of letters, digits, _, . and backticks, because an order column cannot be bound as a ? placeholder. Never pass a user-controlled value which was not checked against your own whitelist of sortable columns.

addOrderPart() without parameters accepts column names only (one or several, separated by a comma), which are validated and escaped because they cannot be bound as parameters. As soon as parameters are given, the first argument is an SQL expression instead, e.g., to sort by the relevance of a fulltext search:

Such an expression is taken over unchanged and must therefore never contain user input; its values belong into parameters. It must not end with ASC or DESC, because the sort direction is added according to ascending. clearOrderParts() removes all sorting that has been added so far.

The query passed to createFromSqlQuery() must consist of SELECT, FROM, optional joins and an optional WHERE only. GROUP BY, HAVING, ORDER BY, LIMIT and UNION are rejected, because sorting and paging are added by DbQuery itself (addOrderPart() and the offset/row count of selectFromDb()).

REST/API Endpoints

yuf includes lightweight helpers for building REST-style endpoints without adding external dependencies.

Useful backend/API features include:

JSON success responses use this structure:

JSON error responses use this structure:

Optional additional response data is returned in a top-level data property.

Template Tags

yuf templates support custom tags for common rendering logic.

Conditional snippet rendering

The tst:if tag can check whether a snippet file exists in the configured snippets directory by using compare="hasSnippet".

The value of against is resolved relative to Core::get()->snippetsDirectory.

Documentation

For more detailed examples, please refer to:

License

This project is licensed under the MIT License. See the LICENSE file for details.


© 2026 Actra AG


All versions of yuf with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-mbstring Version *
ext-openssl Version *
ext-pdo Version *
ext-intl Version *
ext-bcmath Version *
ext-simplexml Version *
ext-dom Version *
ext-iconv Version *
ext-curl Version *
actra/autoloader Version *
ext-libxml Version *
ext-ctype Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package actra/yuf contains the following files

Loading the files please wait ...