frmontini/instafeed
Composer 安装命令:
composer require frmontini/instafeed
包简介
Get basic information and latest posts from a public Instagram profile.
README 文档
README
Now you can get data from public profile pages on Instagram without logging in.
Get started
This repository requires Composer 2.x to install.
You can update it using a simple command in your console: composer self-update --preview.
Also, you need to run on PHP 7.2.x.
Composer command to install:
composer require frmontini/instafeed
How to use
Just follow the example below:
include('vendor/autoload.php'); $utils = new InstaFeed\Utils(); /* TO GET INSTAGRAM CONTENT */ $username = 'cocacola'; $data = $utils->getData($username); print_r(json_decode($data)); /* TO CLEAR CACHE */ $username = 'cocacola'; $utils->noCache($username);
About cache
To prevent blocking access to the profile and redirecting to the login page, further calls to fetched profiles will return cached data.
You can clear persisted data from a specific profile using the noCache function (see example above).
License
OSL-3.0
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2021-11-25