nofw / nofw
No framework at all!
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 1
Type:project
Requires
- php: ^7.1
- doctrine/annotations: ^1.4
- doctrine/cache: ^1.6
- filp/whoops: ^2.1
- middlewares/fast-route: ^0.7.0
- middlewares/php-session: ^0.3.0
- middlewares/request-handler: ^0.2.0
- middlewares/utils: ^0.11.0
- middlewares/whoops: ^0.4.0
- monolog/monolog: ^1.22
- nikic/fast-route: ^1.2
- nofw/emperror: ^0.1.0
- nofw/foundation: ^0.2
- php-di/php-di: ^6.0
- twig/extensions: ^1.4
- twig/twig: ^2.3
- zendframework/zend-diactoros: ^1.4
Requires (Dev)
- phpunit/phpunit: ^6.1
- symfony/var-dumper: ^3.2
- vlucas/phpdotenv: ^2.4
Suggests
- nofw/session-handlers: Advanced session handling, see https://nofw.io/docs/extras/advanced-session/
This package is auto-updated.
Last update: 2024-04-19 08:31:14 UTC
README
No framework at all!
Quick start
$ make setup
To start Docker container:
$ docker-compose up -d
To run the built-in PHP server:
$ make serve
To run the built-in PHP server in a Docker container:
$ make DOCKER_OPTS="-p 8080:8080" docker serve
You should have the app running on localhost, port 8080.
Clean up when you are done:
$ make clean
Recommended development environment
Make sure the following are installed:
- latest Docker
- latest Docker Compose
- make
- composer
Components
No framework uses the following components:
- Router: nikic/fast-route
- DI Container: php-di/php-di
- PSR-7: zendframework/zend-diactoros
- PSR-15: middlewares/*
- Template Engine: Twig
- Environment: vlucas/phpdotenv
What else?
Docker for development and a production ready Docker image are included. For simplicity, they are both PHP+Apache based images, in production PHP-FPM and Nginx are recommended.
Worth mentioning that 100% of any building, caching happens only at container build time, no issues like this.
Materialize CSS is used as the frontend framework.
PHP 7.1, because it's 2017 (and not 2007).
Credits
This skeleton is heavily inspired by @Swader's nofw and his The framework is dead, long live the framework workshop presented at the Web Summer Camp in 2016.
Phil Sturgeon also has an interesting article about the topic.
License
The MIT License (MIT). Please see License File for more information.