2017 © Pedro Peláez
 

project php-cli-framework

PHP CLI framework

image

whagency/php-cli-framework

PHP CLI framework

  • Tuesday, June 26, 2018
  • by whagency
  • Repository
  • 0 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-cli-framework

PHP CLI framework - good console solution for developing and performing modules for regular tasks with CRON and casual one time tasks like operating with data of the remote databases, export and import popular datatypes, load and optimize images etc., (*1)

Directory structure

files/      contains files of all modules
tmp/        contains tempory files and logs
vendor/     contains dependent 3rd-party packages
webheads/   contains core classes of the framework and custom classes and libs

Included libs

  • PhpSpreadsheet - PHP library for reading and writing spreadsheet files
  • ActiveRecord - access data in a database
  • ImageWorkshop - library that helps you to manage images
  • TinyPNG - optimization images
  • CLImate - library for output colored text, special formats, and other in terminal
  • mPDF - generate PDF files from HTML with Unicode/UTF-8 and CJK support
  • cli-progress-bar - progress bar for cli apps

Installation

The preferred way to install this extension is through composer., (*2)

  1. Install framework to you directory, for example php-cli-framework
php composer.phar create-project --prefer-dist whagency/php-cli-framework php-cli-framework
  1. Go to the installation directory
cd php-cli-framework
  1. Run framework via console
php core
// base starting

php core info
// display all modules and action list

php core add
// add new module and/or action

php core module/action
// run my custom module/action
  1. Also, you can run framework in WEB mode with your web server
http://localhost/php-cli-framework/module/action

The Versions