Skip to content
/ ci4-twig Public template

πŸ”₯ Boilerplate with CodeIgniter 4 and Twig Template Engine.

License

Notifications You must be signed in to change notification settings

ManuelGil/ci4-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Codeigniter 4 with Twig Template Engine

Packagist Version Packagist Downloads Packagist Stars Packagist License

πŸ”₯ 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
    • intl
    • libcurl if you plan to use the HTTP\CURLRequest library
    • json (enabled by default - don't turn it off)
    • mbstring
    • mysqlnd if you plan to use MySQL
    • xml (enabled by default - don't turn it off)

Installation

Copy this project

  1. Clone or Download this repository
  2. Unzip the archive if needed
  3. Rename the folder if needed
  4. Start a Text Editor (VSCode, Sublime, PHPStorm, etc)
  5. 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
sudo php composer.phar install

Production

  • Required a composer installation.
composer install --no-dev --optimize-autoloader
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

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

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.