承接 salimid/php-telegraph-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

salimid/php-telegraph-client

最新稳定版本:v0.1.0

Composer 安装命令:

composer require salimid/php-telegraph-client

包简介

The PHP Telegraph Client is a set of simple classes to interact with Telegra.ph.

README 文档

README

The PHP Telegraph Client is a set of simple classes to interact with Telegra.ph.

Installation

composer require salimid/php-telegraph-client

Usage

use SalimId\Telegraph\Account;
use SalimId\Telegraph\Page;

$account = Account::create([
    'short_name' => 'John',
    'author_name' => 'John Doe',
]);

$account = Account::find('d3b25feccb89e508a9114afb82aa421fe2a9712b963b387cc5ad71e58722');

$account->short_name = 'JD';
$account->save()->revoke();

$page = $account->page()->create(['title' => 'Hello World']);

$pages = $account->pages();

$page = $pages->first()->refresh();
$page->title = 'My First Post';
$page->save();

$account->use();

$page = Page::find('Path-to-Page-XX-XX');

$page = new Page;
$page->title = 'My Second Post';
$page->save();

$popular = $account->pages()->sortBy('views')->reverse()->first()->refresh();
$popular->title = 'This Post Got ' . $popular->views . ' Views';
$popular->save();

License

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

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-04