Download the PHP package anton-am/telegraph without Composer
On this page you can find all versions of the php package anton-am/telegraph. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package telegraph
PHP Telegraph Library
A simple php library for integration with telegra.ph
Contents
- Installation
- Usage
- Credits
- License
Installation
Raw composer install
composer.json
Connecting
Usage
Creating new account with random login
All available options:
create(YOUR_USER_TOKEN, YOUR_USER_NAME, YOUR_USER_PUBLIC_URL);
Other account methods
Creating new page without author
Edit page
All available methods:
setAuthor(); //Autofill of name and url from account (if exist)
setAuthor(USER_NAME, USER_URL);
addText(YOUR_TEXT);
addImage(IMAGE_URL);
addLink(URL_NAME, URL_HREF);
addHtml(TAG, TEXT, ATTRIBUTES)
Other account methods
All available methods:
statistic(?YEAR, ?MONTH, ?DAY, ?HOUR);
Handling Errors
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of telegraph with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
ext-json Version *
psr/http-message Version ~1.0
guzzlehttp/guzzle Version ^6.5 || ^7.5
ext-json Version *
psr/http-message Version ~1.0
guzzlehttp/guzzle Version ^6.5 || ^7.5
The package anton-am/telegraph contains the following files
Loading the files please wait ....