manuelgil / ci4-twig
🔥 Boilerplate: Twig template engine for CodeIgniter 4 framework
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 5
Open Issues: 0
Type:project
Requires
- php: ^8.1
- codeigniter4/framework: ^4.0
- codeigniter4/translations: ^4.0
- twig/twig: ^3.4
Requires (Dev)
- fakerphp/faker: ^1.9
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^10.5.18
README
🔥 Boilerplate: Twig template engine for CodeIgniter 4 framework. This project is a simple and fast way to start a new project with CodeIgniter 4 and Twig Template Engine.
This project is based on the Codeigniter 4 with Template Engine.
Requirements
- PHP 8.1 or later
Installation
Copy this project
- Clone or Download this repository
- Unzip the archive if needed
- Rename the folder if needed
- Start a Text Editor (VSCode, Sublime, PHPStorm, etc)
- Add the project folder to the editor
Install the project
You can install this project via composer with the following commands:
Development
- Required a composer installation.
composer install
- Downloading composer.phar.
sudo php composer.phar install
Production
- Required a composer installation.
composer install --no-dev --optimize-autoloader
- Downloading composer.phar.
sudo php composer.phar install --no-dev --optimize-autoloader
Configure the project
- Copy the
env
file and call it.env
.
cp env .env
-
Edit the environment variables in the .env file as you need.
-
Make www-data the owner to
writable
folder.
sudo chown -R www-data: writable/
- Start project
php spark serve
Built With
- CodeIgniter 4.5.4 (CodeIgniter)
Changelog
See CHANGELOG.md
Contributing
Thank you for considering contributing to alternative admin. The contribution guide can be found in the CONTRIBUTING.md.
Code of Conduct
In order to ensure that the alternate admin community is welcoming to all, please review and abide by the CODE_OF_CONDUCT.
Authors
- Manuel Gil - Owner - ManuelGil
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the MIT for details.