PHP code example of mazik / wheniwork

1. Go to this page and download the library: Download mazik/wheniwork 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/ */

    

mazik / wheniwork example snippets


'providers' => [
    /*
     * Package Service Providers...
     */
     
     Mazik\Wheniwork\WheniworkServiceProvider::class,
]

app()->make(Wheniwork::class);

use Wheniwork;

public function __construct(Wheniwork $wheniwork)
{
    $this->wheniwork = $wheniwork;
}
shell
php artisan vendor:publish --provider="Mazik\Wheniwork\WheniworkServiceProvider" --tag="config"