Download the PHP package sugiphp/sugi without Composer
On this page you can find all versions of the php package sugiphp/sugi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sugi
Sugi
Sugi is a micro framework using SugiPHP Components as well as some other components. It works as a Dependency Injection Container and it is very flexible.
Hello World! example
Installation
Usage
Defined paths
PSR-3 Logger
The App is using SugiPHP\Logger by default, which is PSR-3 compliant. To use logger you can use one lazy method: log(string $level, string $message, array $context = [])
, or use the instance app["logger"]
to access methods given by the specification:
PSR-7 Requests
The App is PSR-7 compatible and is using zendframework/zend-diactoros internally. You can plug any other PSR-7 compatible library for ServerRequest (instance of \Psr\Http\Message\ServerRequestInterface.)
The URI is an instance of \Psr\Http\Message\UriInterface, so you can use:
and all other PSR-7 UriInterface methods. Note that manipulating an $app["uri"] will not change it's value:
Cache
The default cache is a virtual cache that is only available till the end of the script. All values can be set and get with one method cache()
By default Sugi is using SugiPHP Cache. To set up Sugi to use memcached server you can use a configuration file /path/to/config/cache.php
:
See config file example
All versions of sugi with dependencies
sugiphp/config Version dev-master
sugiphp/cache Version dev-master
sugiphp/logger Version dev-master
sugiphp/database Version dev-master
sugiphp/events Version dev-master
sugiphp/http Version dev-master
sugiphp/routing Version dev-master
sugiphp/assets Version dev-master
sugiphp/filesystem Version dev-master
sugiphp/cron Version dev-master
sugiphp/container Version dev-master
sugiphp/filter Version dev-master
symfony/yaml Version 2.2.*
leafo/lessphp Version 0.3.*
swiftmailer/swiftmailer Version 4.3.*