/cli_skel

Skeleton based on https://github.com/thephpleague/skeleton but using Silly and focusing on Command Line

Primary LanguagePHPMIT LicenseMIT

:package_name

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Note: Replace :author_name :author_username :author_website :author_email :vendor :package_name :package_description with their correct values in README.md, CHANGELOG.md, CONTRIBUTING.md, LICENSE.md and composer.json files, then delete this line. You can run $ php prefill.php in the command line to make all replacements at once. Delete the file prefill.php as well.

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

This will create a CLI foundation using Silly

It is based off the thephpleague/skeleton library

THIS IS 99% BASED ON https://github.com/thephpleague/skeleton TOTALLY APPRECIATE THEIR WORK

Structure

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.

bin/        
config/
src/
tests/
vendor/

Install

First install cgr as seen here Then run

$ cgr global require :vendor/:package_name:dev-master

So the article here for more details

Global Install Notes

This is how a user can install this for a reliable global install:

Usage

$skeleton = new Alnutile\Skeleton();
echo $skeleton->echoPhrase('League!', 'Hello');

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

if you get an error change the extend of src/SkeletonClass.php to \PHPUnit\Framework\TestCase your install might have setup PHPUnit 6

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.