This PHP extension provides the interfaces from the PSR standards as established by the PHP-FIG group. You can use interfaces provided by this extension in another extension easily - see this example.
- PSR-3 - psr/log - tested against monolog
- PSR-6 - psr/cache - tested against Stash and psx-cache
- PSR-7 - psr/http-message - tested against guzzle/psr7
- PSR-11 - psr/container - tested against league/container
- PSR-13 - psr/link - tested against php-fig/link-util
- PSR-16 - psr/simple-cache - tested against psx-cache
Prerequisite packages are:
- PHP development headers and tools
gcc
>= 4.4 |clang
>= 3.x |vc
>= 11- GNU
make
>= 3.81 automake
autoconf
You will need the PHP development headers. If PHP was manually installed, these should be available by default. Otherwise, you will need to fetch them from a repository.
git clone https://github.com/jbboehr/php-psr.git
cd php-psr
phpize
./configure
make
make test
sudo make install
If you have specific PHP versions running:
git clone https://github.com/jbboehr/php-psr.git
cd php-psr
phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make test
sudo make install
Add the extension to your php.ini:
echo extension=psr.so | tee -a /path/to/your/php.ini
Finally, restart the web server.
You may also be able to install this extension via PECL:
pecl install psr
or by downloading a DLL from PECL or windows.php.net and placing it in the appropriate directory.
- @sergeyklay - Appveyor and documentation improvements
- @Jan-E - Original appveyor template
This project is open source software licensed under the Simplified BSD License. See the LICENSE.md file for more information.
PSR Interfaces: Copyright (c) 2012-present PHP Framework Interoperability Group.