nenevel / framework
DoItYourself Micro Framework
dev-master
2020-07-08 14:50 UTC
Requires
- php: >=7.0
- filp/whoops: ^2.3
- ircmaxell/password-compat: ^1.0
- pecee/simple-router: 4.2.0.3
- phpmailer/phpmailer: ^6.0
- predis/predis: ^1.1
- symfony/console: ^5.1@dev
- tamtamchik/simple-flash: ^1.2
- twig/twig: >=2.5.0
- vlucas/phpdotenv: ^2.2
- wixel/gump: ^1.5
This package is auto-updated.
Last update: 2024-12-22 23:55:47 UTC
README
A PHP minimal framework which allows you to control every bit of it.
HOW TO USE
- Install composer globally. Do the following on a Linux. Visit here for windows.
$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" $ php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" $ php composer-setup.php $ php -r "unlink('composer-setup.php');" $ mv composer.phar /usr/local/bin/composer
- Create a new project using composer.
$ composer create-project nenevel/framework [project_name] -s dev
- Run the config script.
$ cd [project_name] && php manage.php app:config
Todo
- Customise the way mail are sent using the PHPMailer library.
- Add more custom sessionhandlers or create one that accepts any form of session store.
- Create an easy to use dashboaord for admin manipulations like in Django Framework.
- Support PHP in-built development server.
- Handle static files with nodejs' gulp library.