Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manuelgil/ci4-twig
🔥 Boilerplate with CodeIgniter 4 and Twig Template Engine.
https://github.com/manuelgil/ci4-twig
codeigniter codeigniter-boilerplate codeigniter-template codeigniter-twig codeigniter4 codeigniter4-boilerplate codeigniter4-template codeigniter4-twig twig-template
Last synced: about 1 month ago
JSON representation
🔥 Boilerplate with CodeIgniter 4 and Twig Template Engine.
- Host: GitHub
- URL: https://github.com/manuelgil/ci4-twig
- Owner: ManuelGil
- License: mit
- Created: 2022-10-07T02:29:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T19:44:47.000Z (7 months ago)
- Last Synced: 2024-05-02T04:33:33.344Z (7 months ago)
- Topics: codeigniter, codeigniter-boilerplate, codeigniter-template, codeigniter-twig, codeigniter4, codeigniter4-boilerplate, codeigniter4-template, codeigniter4-twig, twig-template
- Language: PHP
- Homepage: https://packagist.org/packages/manuelgil/ci4-twig
- Size: 348 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Codeigniter 4 with Twig Template Engine
[![Packagist Version](https://img.shields.io/packagist/v/manuelgil/ci4-twig?style=for-the-badge&logo=packagist)](https://packagist.org/packages/manuelgil/ci4-twig)
[![Packagist Downloads](https://img.shields.io/packagist/dt/manuelgil/ci4-twig?style=for-the-badge&logo=packagist)](https://packagist.org/packages/manuelgil/ci4-twig)
[![Packagist Stars](https://img.shields.io/packagist/stars/manuelgil/ci4-twig?style=for-the-badge&logo=github)](https://github.com/ManuelGil/ci4-twig)
[![Packagist License](https://img.shields.io/packagist/l/manuelgil/ci4-twig?style=for-the-badge&logo=github)](https://github.com/ManuelGil/ci4-twig/blob/main/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](https://github.com/ManuelGil/ci4-template-engine).
## Requirements
- [PHP 8.1](https://www.php.net/releases/8_1_0.php) or later
- [intl](http://php.net/manual/en/intl.requirements.php)
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
- json (enabled by default - don't turn it off)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) 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.
```bash
composer install
```- Downloading [composer.phar](https://getcomposer.org/download/).
```bash
sudo php composer.phar install
```#### _Production_
- Required a composer installation.
```bash
composer install --no-dev --optimize-autoloader
```- Downloading [composer.phar](https://getcomposer.org/download/).
```bash
sudo php composer.phar install --no-dev --optimize-autoloader
```## Configure the project
- Copy the [`env`](./env) file and call it `.env`.
```bash
cp env .env
```- Edit the environment variables in the .env file as you need.
- Make www-data the owner to `writable` folder.
```bash
sudo chown -R www-data: writable/
```- Start project
```bash
php spark serve
```## Built With
- CodeIgniter 4.5.4 ([CodeIgniter](https://www.codeigniter.com/download))
## Changelog
See [CHANGELOG.md](./CHANGELOG.md)
## Contributing
Thank you for considering contributing to alternative admin. The contribution guide can be found in the [CONTRIBUTING.md](./.github/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](./.github/CODE_OF_CONDUCT.md).
## Authors
- **Manuel Gil** - _Owner_ - [ManuelGil](https://github.com/ManuelGil)
See also the list of [contributors](https://github.com/ManuelGil/ci4-twig/contributors)
who participated in this project.## License
This project is licensed under the MIT License - see the [MIT](https://opensource.org/licenses/MIT) for details.