danack/tier
An 'framework' application using DI with tiers for full 'Dependency inversion'.
Maintainers
Requires
- php: ^5.5 | ^7
- danack/aurynconfig: ^0.9.1
- rdlowrey/auryn: ^1.4.0
- zendframework/zend-diactoros: ^1.3.2
Requires (Dev)
- danack/jig: ^0.21.2
- mockery/mockery: 0.9.1
- nikic/fast-route: 0.3.0
- phpunit/phpunit: 3.7.*
- room11/caching: ^0.0.4
- room11/http: ^0.2.0
- squizlabs/php_codesniffer: ^2.0.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 2a2a7ce8e445d1259581453c66a270cf6a99a92f
- Dan Ackroyd <Danack.woop@basereality.com>
This package is auto-updated.
Last update: 2022-09-12 00:07:21 UTC
README
An application runner framework that uses a DIC to allow multiple 'tiers', to allow complete separation between routing, controllers and view tiers.
The real name for the "pattern" is breaking the execution of a program up into individual blocks. Each of those blocks can have their own set of dependencies.
This is why the 'framework' is called Tier, as it allows you to "arrange in layers" . Each block of execution builds up information to be used by subsequent execution blocks.
Documentation
The documentation, such as it is, is available at http://tier.phpjig.com/
How to run
There is a skeleton application available here, which can be run with:
git clone https://github.com/Danack/TierJigSkeleton
cd TierJigSkeleton/
composer install
php -S localhost:8000 -t public
Running built in test
Some of the tests depend on PHP's built-in server. This is run automatically as part of the test suite if PCNTL is availble. For debugging purposes, you may wish to run this server manually which can be done with:
php -S localhost:8000 -t ./test/app/public
