2017 © Pedro PelĂĄez
 

project console-skeleton

Skeleton for a console application with DI-container and yaml-config

image

hmazter/console-skeleton

Skeleton for a console application with DI-container and yaml-config

  • Wednesday, March 14, 2018
  • by hmazter
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 33 % Grown

The README.md

Console Skeleton

Latest Stable Version Total Downloads License, (*1)

Skeleton for a console application, including: * DI-Container * Services and commands autowired in yaml-config * Example Command * Example test * Phar Builder, (*2)

Getting started

This will create a new project with the skeleton for a console application:, (*3)

composer create-project hmazter/console-skeleton the-new-app-name
cd the-new-app-name

The skeleton can then be executed with:, (*4)

./app

Building distributable phar

A phar-file that can be distributed can be built with:, (*5)

composer build

This will output the phar-file in the project root, named <project-directory-name>.phar., (*6)

Running with docker

Build the app with:, (*7)

docker-compose build

And run the app with docker with this command:, (*8)

docker-compose run console ./app

Tests

Tests can be run with:, (*9)

composer test

Static Code analyse

Code can be static analysed with PHPStan:, (*10)

composer analyse

Continue building

Go ahead and: * Edit/replace command in src/Commad/ExampleCommand * Add more commands in src/Command * Add additional classed that you need in src/ * Edit/replace the test in tests/Command/ExampleCommandTest, (*11)

The Versions

14/03 2018

dev-master

9999999-dev

Skeleton for a console application with DI-container and yaml-config

  Sources   Download

MIT

The Requires

 

The Development Requires

14/03 2018

v0.1.0

0.1.0.0

Skeleton for a console application with DI-container and yaml-config

  Sources   Download

MIT

The Requires

 

The Development Requires