https://github.com/icapps/php-boilerplate
https://github.com/icapps/php-boilerplate
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icapps/php-boilerplate
- Owner: icapps
- License: mit
- Created: 2021-04-01T06:13:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-17T15:43:52.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T19:21:12.764Z (about 1 year ago)
- Language: PHP
- Size: 11.5 MB
- Stars: 2
- Watchers: 7
- Forks: 2
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚡ Symfony template project
This repository provides the recommended **project template for starting a new icapps PHP project**.
The project template follows the best-practices of the [Symfony](https://symfony.com/) framework and builds upon tho official [symfony/skeleton](https://github.com/symfony/skeleton) template.
## 🚀 Installation and Documentation
This project is set-up using [Symfony Local Webserver](https://symfony.com/doc/current/setup/symfony_server.html):
Copy the necessary environment variables from `.env.dist` and, run:
```bash
docker-compose up -d --build
symfony proxy:start
symfony server:start --dir=symfony
```
For initial set-up including Sulu Admin portal, run:
```bash
symfony console sulu:build dev
```
To create a default user for the login flow, run:
```bash
symfony php bin/websiteconsole doctrine:fixtures:load
```
For setting up LexikJWTAuth .pem files, run:
```bash
symfony console lexik:jwt:generate-keypair
```
For DateTime use Carbon (also integrated standard Doctrine datetime):
```php
$tomorrow = Carbon::now()->addDay();
$lastWeek = Carbon::now()->subWeek();
```
https://carbon.nesbot.com/docs/
## PHP Boilerplate
For further questions, ask the icapps PHP team.
## ✅ Requirements
This project requires a **PHP version higher or equal to 7.2** and is compatible with every **Symfony version starting from 4.3**.
## 📘 License
Symfony is released under the under terms of the [MIT License](LICENSE).