定制 eleirbag89/mastodonbotphp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

eleirbag89/mastodonbotphp

最新稳定版本:v0.1

Composer 安装命令:

composer require eleirbag89/mastodonbotphp

包简介

A very simple PHP Mastodon API for sending statuses

README 文档

README

PHP CURL

Total Downloads License StyleCI

A very simple PHP Mastodon API for sending statuses

Requirements

  • PHP >= 5.3
  • Curl extension for PHP5 must be enabled.
  • A Mastodon Application Client token. From Settings -> Development -> NEW APPLICATION enter a name and select the permissions, you will need write:media to upload media files and write:statuses to publish statuses. "Your access token" contains the token.
  • Some way to execute the script in order to serve messages (for example https://cron-job.org/)

Download

Using Composer

From your project directory, run:

composer require eleirbag89/mastodonbotphp

or

php composer.phar require eleirbag89/mastodonbotphp

Note: If you don't have Composer you can download it HERE.

Using release archives

https://github.com/Eleirbag89/MastodonBotPHP/releases

Using Git

From a project directory, run:

git clone https://github.com/Eleirbag89/MastodonBotPHP.git

Installation

Via Composer's autoloader

After downloading by using Composer, you can include Composer's autoloader:

include (__DIR__ . '/vendor/autoload.php');

$mastodon = new Mastodon('YOUR APP TOKEN HERE', 'YOUR INSTANCE URL HERE');

Via Mastodon class

Copy Mastodon.php into your server and include it in your new bot script:

include 'Mastodon.php';

$mastodon = new Mastodon('YOUR APP TOKEN HERE', 'YOUR INSTANCE URL HERE');

License

This open-source software is distributed under the MIT License. See LICENSE.md

Contributing

All kinds of contributions are welcome - code, tests, documentation, bug reports, new features, etc...

  • Send feedbacks.
  • Submit bug reports.
  • Write/Edit the documents.
  • Fix bugs or add new features.

Contact me

You can contact me via Mastodon Bida but if you have an issue please open one.

Support me

You can support me using via LiberaPay Donate using Liberapay

or buy me a beer or two using Paypal.

统计信息

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

GitHub 信息

  • Stars: 29
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-10