Download the PHP package jwyuen/dotslash without Composer
On this page you can find all versions of the php package jwyuen/dotslash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jwyuen/dotslash
More information about jwyuen/dotslash
Files in jwyuen/dotslash
Package dotslash
Short Description Dotslash: utils for quickly creating command line application in php
License MIT
Informations about the package dotslash
Dotslash (for PHP)
What is it?
A php library that allows you to make command line scripts quickly in PHP with conveniences that most command line scripts should have such as:
- logging
- email notifications on failure
- easy way to take in and parse command line options
- execution timer
- nice looking console output
This library is mostly a wrapper over the excellent Symfony Console library, but with added functionality that doesn't exist in the Console library such as logging, email notifications, and a execution timer.
What is the purpose?
The purpose is to simplify creation of command line scripts
Install
Just add to your composer.json like:
Usage
Create a class that extends the \Dotslash\BaseCommand class. Your class should extend the following functions:
You'll then need an entry point script from which you'll run your command line script. An example is located in sample/console.php
Config Structure
If you decide you want to enable logging and email functionality, you'll need to create a config file with the following name and contents/structure:
Example dotslash-config.php:
As you can tell from the example config, you'll need an AWS account to send emails via Simple Email Service. There may be support for other email options in the future.
All versions of dotslash with dependencies
aws/aws-sdk-php Version 3.*
monolog/monolog Version 1.*
jwyuen/configee-php Version v1.*
symfony/console Version 2.*
symfony/event-dispatcher Version 2.3.*