sweikenb / console-framework-standard
Sample console application build with sweikenb/console-framework.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.1
- sweikenb/console-framework: ^0.4
Suggests
- sweikenb/pcntl: Install the sweikenb/pcntl library so you can use process forking in your application.
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