PHP code example of the-3labs-team / nova-github-cards
1. Go to this page and download the library: Download the-3labs-team/nova-github-cards 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/ */
the-3labs-team / nova-github-cards example snippets
use \The3LabsTeam\NovaGithubCards\LatestCommitsTable;
use \The3LabsTeam\NovaGithubCards\LatestIssuesTable;
...
(new LatestCommitsTable()
(new LatestIssuesTable()
use \The3LabsTeam\NovaGithubCards\LatestCommitsTable;
...
(new LatestCommitsTable(
name: 'The name of the card (string)',
vendor: 'The name of your vendor (string)',
repository: 'The name of your repo (string)',
branch: 'The name of your branch (string)',
perPage: 'Total of results (int)',
cache: 'The cache in seconds (int)')
)
bash
php artisan vendor:publish
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.