PHP code example of ikasgela / laravel-gitea
1. Go to this page and download the library: Download ikasgela/laravel-gitea 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/ */
ikasgela / laravel-gitea example snippets
return [
'url' => env('GITEA_URL'),
'token' => env('GITEA_TOKEN'),
];
$repository = GiteaClient::repo('user/repository');
echo $repository['http_url_to_repo'];
bash
php artisan vendor:publish --provider="Ikasgela\Gitea\GiteaServiceProvider"