PHP code example of ssionn / github-forge-laravel

1. Go to this page and download the library: Download ssionn/github-forge-laravel 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/ */

    

ssionn / github-forge-laravel example snippets


   'providers' => [
       // Other Service Providers

       Ssionn\GithubForgeLaravel\GitHubForgeServiceProvider::class,
   ],
   

   return [
       'token' => env('GITHUB_API_TOKEN', 'your-github-token-here'),
   ];
   

use Ssionn\GithubForgeLaravel\GitHubClient;

$client = app('github-forge');
$response = $client->getUser($username);

use Ssionn\GithubForgeLaravel\Facades\GithubForge;

$response = GithubForge::getUser($username);
sh
   php artisan vendor:publish --provider="Ssionn\GithubForgeLaravel\GithubForgeServiceProvider" --tag=config