Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hacfi/symfony-cli-di-template

Template for Symfony CLI App with Dependency Injection - using box-project/scaffold
https://github.com/hacfi/symfony-cli-di-template

Last synced: 12 days ago
JSON representation

Template for Symfony CLI App with Dependency Injection - using box-project/scaffold

Awesome Lists containing this project

README

        

# Symfony CLI App with Dependency Injection

Using [box-project/scaffold](https://github.com/box-project/scaffold)

## Add command

Check out `src/App/Command/TestCommand.php` and `services.yml` to see how it’s done. Basically

## Build Phar

To create a Phar archive from your project install [box-project/box2](https://github.com/box-project/box2) globally via composer:

```sh
composer global require kherge/box --prefer-source
```

Then run

```sh
box build
```

to create it. Edit the `box.json` to make changes to the phar.