PHP code example of jruedaq / php-github-issues-report
1. Go to this page and download the library: Download jruedaq/php-github-issues-report 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/ */
jruedaq / php-github-issues-report example snippets
use jruedaq\GithubIssuesReport\PHPGithubIssuesReport;
// User or company username
$repo = 'CanvasVoteSystem'; // Repository name
$token = '870082df3998d104ba4164cb07217d5a734bb8fd'; // Personal access token, get from {@link https://github.com/settings/tokens} with [repo] permission
$title = 'Testing a issue reporting from PHP'; // Title for new issue
$body = 'This is a description text bellow title in github issues'; // Body description for new issue
try {
$issueNumber = PHPGithubIssuesReport::send($owner, $repo, $token, $title, $body);
echo "Created issue #$issueNumber"; // Display issue number
} catch (Exception $e) {
echo $e->getMessage();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.