sweikenb/console-framework-standard

Sample console application build with sweikenb/console-framework.

v0.4.0 2022-08-04 16:52 UTC

This package is auto-updated.

Last update: 2024-04-04 20:48:34 UTC


README

Template project for creating console base applications including .phar builds.

License: MIT

Using this template for project creation

Create your new project by using the template repository:

composer create-project sweikenb/console-framework-standard ./my-project-dir

If you want to use the process manager functionality for process forking, please also install the pcntl library when you are in your new projects root-directory:

cd ./my-project-dir
composer require sweikenb/pcntl

Getting started

Please have a look at the framework documentation for more details.

Bundle your application into a single file

Please note that you have to enable the phar-extension of PHP and also need to set this in your php.ini:

phar.readonly = 0

If you are using the suhosin extension, please also whitelist the phar extension:

suhosin.executor.include.whitelist = "phar"

Create the executable

php bin/console core:compile "my-application.phar" --executable