PHP code example of bss-taiphung / bss_puppy

1. Go to this page and download the library: Download bss-taiphung/bss_puppy library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bss-taiphung / bss_puppy example snippets


'providers' => array(
    ...
    'bss_taiphung\puppy\ServiceProviders\PuppyServiceProvider::class',

),

'aliases' => array(

    ...
    'Puppy'  => bss_taiphung\puppy\Facades\PuppyFacade::class,

),

###Facade
Puppy::bark() => puppy is barking!
Puppy::run() => puppy is running!

###API 
GET /randomQuote  => Smile, breathe, and go slowly. - Thich Nhat Hanh