library hellodolly
Generates a random line from Hello Dolly (hat tip to WordPress). Useful for learning the basic structure of a Composer package.
bobloco/hellodolly
Generates a random line from Hello Dolly (hat tip to WordPress). Useful for learning the basic structure of a Composer package.
- Wednesday, April 10, 2013
- by BobLoco
- Repository
- 0 Watchers
- 0 Stars
- 6 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Readme
Hello Dolly Composer Package
A very basic and primitive "Hello world"-style script and a tribute to WordPress's default plugin., (*1)
Usage
-
Install Composer if you haven't already.
- Add
"bobloco/hellodolly": "*"
to your composer.json file
- Run
composer update
- Add the following to the list of service providers (found in
app/config/app.php
in Laravel)
'Bobloco\Hellodolly\HellodollyServiceProvider',
- If you're using Laravel, you can add the following to the aliases in
app/config/app.php
, and then use HelloDolly::output();
to return a line.
'HelloDolly' => 'Bobloco\Hellodolly\Facades\Hellodolly',
Please note that this package is primarily designed to teach you about how composer packages work, particularly with regard to integration into Laravel. Take a look at the code, and see what you make of it. At some point I'll get 'round to writing it all step-by-step, but for the moment this will have to do., (*2)
dev-master
9999999-dev
http://www.cunningtitle.com
Generates a random line from Hello Dolly (hat tip to WordPress). Useful for learning the basic structure of a Composer package.
Sources
Download
MIT
The Requires
by
BobLoco