Client
class Client
Traits
Properties
protected | $curl | from CICommon | |
protected | $api_url | from CICommon |
Methods
List all codes of conduct.
Get an individual code of conduct.
No description
Get the contents of a repository's code of conduct.
Emojis.
Listing available templates.
Get a single template.
List all licenses.
Get an individual license.
Get the contents of a repository's license.
Render an arbitrary Markdown document.
Render a Markdown document in raw mode.
meta.
Get your current rate limit status.
Details
in CICommon at line 18
__construct(Curl $curl, string $api_url)
CICommon constructor.
at line 20
mixed
listAllCodesOfConduct()
List all codes of conduct.
at line 32
mixed
getCodeOfConduct(string $key)
Get an individual code of conduct.
at line 42
mixed
getRepositoryCodeOfConduct(string $repo_full_name)
at line 54
mixed
getContentsOfRepositoryCodeOfConduct(string $repo_full_name)
Get the contents of a repository's code of conduct.
at line 70
mixed
getEmojis()
Emojis.
Lists all the emojis available to use on GitHub.
at line 82
listGitignore()
Listing available templates.
at line 94
mixed
getGitignore(string $name = 'C')
Get a single template.
at line 106
mixed
listLicenses()
List all licenses.
at line 118
mixed
getLicense(string $name = 'mit')
Get an individual license.
at line 130
mixed
getContentsOfRepositoryLicense(string $repo_full_name)
Get the contents of a repository's license.
at line 145
mixed
RenderMarkdown(string $text, string $context, string $mode = 'markdown')
Render an arbitrary Markdown document.
at line 163
mixed
RenderMarkdownRaw(string $content, string $content_type = 'text/plain')
Render a Markdown document in raw mode.
at line 177
mixed
getMeta()
meta.
at line 191
mixed
getRateLimit()
Get your current rate limit status.