sweikenb / console-framework-standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sweikenb/console-framework-standard

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

About

License:MIT License


Languages

Language:PHP 100.0%