bobloco / hellodolly
Generates a random line from Hello Dolly (hat tip to WordPress). Useful for learning the basic structure of a Composer package.
dev-master
2013-04-10 20:57 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.0.x
This package is not auto-updated.
Last update: 2024-11-09 16:02:27 UTC
README
Hello Dolly Composer Package
A very basic and primitive "Hello world"-style script and a tribute to WordPress's default plugin.
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 useHelloDolly::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.