nonz250/php-simple-ogp
Composer 安装命令:
composer require nonz250/php-simple-ogp
包简介
This is a simple library for reading OGP.
README 文档
README
simple ogp maker
Contributing
Feel free to submit a Pull Request. However, please run the make prod command and check the test content before submitting your Pull Request.
Development
We recommend using Docker for this project.
Make Commands
Initial Setup
make setup
Development Test
Testing under development.
make test
Code Fixer
make fix
Production Test
Test before you Pull Request.
make prod
How to use
For Example.
$ogp = new \SimpleOgp\SimpleOgp('https://labo.nozomi.bike'); // Get web site content and set ogp values. $ogp->getHtml(); // Get ogp title. $title = $ogp->title(); // Get ogp description. $description = $ogp->description(); // Get ogp image path. $imagePath = $ogp->imagePath();
统计信息
- 总下载量: 5.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-12