PHP code example of bitkub1 / webapi

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

    

bitkub1 / webapi example snippets


composer 

$app->register(Webapi\Providers\GenerateWebapiProvider::class);


if ( ! function_exists('config_path'))
{
    /**
     * Get the configuration path.
     *
     * @param  string $path
     * @return string
     */
    function config_path($path = '')
    {
        return app()->basePath() . '/config' . ($path ? '/' . $path : $path);
    }
}

"autoload": {
    "psr-4": {
        "App\\": "app/"
    },
    "files": [
        "app/helpers/helpers.php"
    ]
},

$ php artisan bitkubweb:genfile

composer dump-autoload