coral-media / crune
(C)onsole (Run)time (E)nviroment. Ideal for running cron jobs and low profile/level tasks.
Requires
- php: ^8.1
- symfony/config: ^6.2
- symfony/console: ^6.2
- symfony/dependency-injection: ^6.2
- symfony/dotenv: ^6.2
- symfony/process: ^6.2
- symfony/yaml: ^6.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/phpunit-bridge: ^6.2
- symfony/var-dumper: ^6.2
README
The Console Runtime Environment. Built with Symfony Components
Run sample command php bin/console app:acme
, sourcecode
available at src/Command/AcmeCommand.php
How to use
Clone the repo using git
or create your own project with composer
:
composer create-project coral-media/crune crune
Any class under ./src
will be auto-wired and auto wired/configured by the container.
Docker
In order to use the dockerized distribution adjust the environment variables
in docker.env
and modify docker files to fit your requirements as you want. The default
values/configuration also works.
sudo docker-compose --env-file docker.env build --pull --no-cache
Make sure the container is up and running
sudo docker exec -it crune-php bin/console app:acme Developer