An open API service indexing awesome lists of open source software.

https://github.com/icapps/php-boilerplate


https://github.com/icapps/php-boilerplate

Last synced: 12 months ago
JSON representation

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).