PHP code example of murdercode / nova4-bitbucket-news-commits

1. Go to this page and download the library: Download murdercode/nova4-bitbucket-news-commits 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/ */

    

murdercode / nova4-bitbucket-news-commits example snippets


'nova4-bitbucket-news-commits' => [
    'folder' => env('NOVA_BITBUCKET_FOLDER', ''),
    'username' => env('NOVA_BITBUCKET_USERNAME', ''),
    'password' => env('NOVA_BITBUCKET_PASSWORD', ''),
    'repository' => env('NOVA_BITBUCKET_REPOSITORY', ''),
],

use Murdercode\Nova4BitbucketNewsCommits\Nova4BitbucketNewsCommits;
//...

class Main extends Dashboard
{
    public function cards()
    {
        return [
            //new Help,
            (new Nova4BitbucketNewsCommits())->commits()->limit(10), // <-THIS LINE
        ];
    }
}


use Murdercode\Nova4BitbucketNewsCommits\Nova4BitbucketNewsCommits;
//...

class Main extends Dashboard
{
    public function cards()
    {
        return [
            (new Nova4BitbucketNewsCommits())->commits('my-custom-repo')->limit(20)
        ];
    }
}