PHP code example of jwage / changelog-generator

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

    

jwage / changelog-generator example snippets




declare(strict_types=1);

use ChangelogGenerator\ChangelogConfig;

return [
    'changelog-generator' => (new ChangelogConfig())
        ->setUser('jwage')
        ->setRepository('changelog-generator')
        ->setMilestone('0.0.4')
        ->setLabels(['Enhancement', 'Bug'])
        ->setIncludeOpen(true)
    ,
    'another-project' => (new ChangelogConfig())
        // ...
    ,
];



declare(strict_types=1);

use ChangelogGenerator\ChangelogConfig;

return [
    'changelog-generator' => (new ChangelogConfig())
        ->setUser('jwage')
        ->setRepository('changelog-generator')
        ->setMilestone('0.0.3')
        ->setLabels(['Enhancement', 'Bug'],)
        ->setOption('rootGitHubUrl', 'https://git.mycompany.com/api/v3')
    ,
];



declare(strict_types=1);

use ChangelogGenerator\ChangelogConfig;
use ChangelogGenerator\GitHubUsernamePassword;

return [
    'changelog-generator' => (new ChangelogConfig())
        // ...
        ->setGitHubCredentials(new GitHubUsernamePassword('username', 'passwordOrToken'))
    ,
];



declare(strict_types=1);

use ChangelogGenerator\ChangelogConfig;
use ChangelogGenerator\GitHubOAuthToken;

return [
    'changelog-generator' => (new ChangelogConfig())
        // ...
        ->setGitHubCredentials(new GitHubOAuthToken('the oauth token'))
    ,
];