定制 decodelabs/chirp 二次开发

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

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

decodelabs/chirp

最新稳定版本:v0.10.5

Composer 安装命令:

composer require decodelabs/chirp

包简介

Tweet parser

README 文档

README

PHP from Packagist Latest Version Total Downloads GitHub Workflow Status PHPStan License

Twitter tools for PHP

Chirp provides a hand-rolled tweet parser allowing you to render imported tweets on your site without hassle.

Installation

This package requires PHP 8.4 or higher.

Install via Composer:

composer require decodelabs/chirp

Usage

Parse a tweet into HTML:

use DecodeLabs\Chirp\Parser;

$parser = new Parser();
echo $parser->parse($myTweet);

Metamorph

Chirp also provides a Metamorph Handler so that it can be used via its simplified interface:

use DecodeLabs\Metamorph;

echo Metamorph::tweet($myTweet);

Output

The parsed HTML provided by Chirp is now wrapped in a Markup interface from the Tagged library such that output is handled correctly in all rendering contexts.

Licensing

Chirp is licensed under the MIT License. See LICENSE for the full license text.

统计信息

  • 总下载量: 852
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-25