Download the PHP package donchev/framework without Composer

On this page you can find all versions of the php package donchev/framework. 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 framework

Tiny Framework

A lightweight and expressive PHP framework built for clarity, structure, and extensibility. Ideal for small to mid-sized web applications.


Features

Built-in functionalities

Includes Bootstrap 5 and Bootstrap Icons for UI development.


Requirements


Installation

You can install the framework using Composer.


Configuration

All application configuration is located in config/settings.yaml. Example:

Override values via settings.local.yaml.


Usage

Routing

Define routes in config/routes.php:


Controllers

Controllers extend AbstractController:


Sending Emails


Database (MeekroDB)


Using Cache


Flash Messages

Set flash messages in controller:

Render them in Twig:


Middleware

Implement MiddlewareInterface and drop your class into src/Middleware. It will be auto-loaded.


Twig Template Globals

Twig templates automatically have access to:


Data Validator & Sanitizer

Validator:

Validator & Flash Messages:

Sanitizer:


Console Commands

Define commands in bin/console. Example:

Run them:


Code Style

This project uses php-cs-fixer. You can format your code using:

Check for issues without modifying files:


Testing

The framework includes PHPUnit 12+ test coverage out of the box.

Run tests:

All test files are located in the tests/ folder and follow PSR-4 autoloading with the Tests\ namespace.


Development Mode

Set app.env: dev to enable detailed error pages (via Whoops) and debugging tools.


Production

Set app.env: prod to enable compiled container and cache.


License

This project is open-source and licensed under the MIT License.


Author

Developed by Donchev. Contributions are welcome.


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
nikic/fast-route Version ^1.3
php-di/php-di Version ^7.0
symfony/yaml Version ^7.2
donchev/simple-logger Version ^2.1
doctrine/annotations Version ^2.0
twig/twig Version ^3.20
symfony/cache Version ^7.2
nette/mail Version ^4.0
sergeytsalkov/meekrodb Version ^3.1
symfony/console Version ^7.2
laminas/laminas-diactoros Version ^3.5
psr/http-message Version ^2.0
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 donchev/framework contains the following files

Loading the files please wait ....