Skip to content

p-seven-v/telegraph-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegra.ph API for PHP

Packagist License

This package lets you work with telegra.ph API.

Contents

Disclaimer

^1.0 version here is a copy of deploykit/telegraph-api project. That package is discontinued in favor of this one. This package replaces that one, and for backward compatibility it even contains legacy namespace.

^2.0 will have it changed to correspond to vendor name - P7V.

Installation

To get the latest version of Telegra.ph API client simply require the project using Composer:

$ composer require p7v/telegraph-api

Or you can manually update your require block and run composer update if you choose so:

{
    "require": {
        "p7v/telegraph-api": "^1.0"
    }
}

Usage

All methods in Telegraph Client class correspond to API methods that are described in Telegraph API documentation.

$telegraph = new \Deploykit\Telegraph\Client();

$telegraph->createAccount('Author', 'Author name', 'http://example.com');

All entities' classes implement ArrayAccess, so any property of any class can be accessed either in object style or in array style. For all methods that require access_token, you can either provide a string with your token or provide instance of \Deploykit\Telegraph\Entities\Account class.

Changelog

Please see CHANGELOG for more information what has changed recently.

Roadmap

All future features are documented in Roadmap GitHub project.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages