peterujah/php-instagram-query
最新稳定版本:1.1
Composer 安装命令:
composer require peterujah/php-instagram-query
包简介
A simple php class to extract user profile picture, page_ids, profile_id & name from instagram.
README 文档
README
A simple php class to extract user profile pictures, page_ids, profile_id followers, following, posts & name from instagram
Installation is super-easy via Composer:
composer require peterujah/php-instagram-query
USAGES
Initialize InstagramQuery with the necessary parameters and register your custom classes.
use \Peterujah\NanoBlock\InstagramQuery; $lookup = new InstagramQuery(); $username = "peterchig";
OR with options
List of supported os for userAgent string [ 'chrome', 'firefox', 'explorer', 'iphone', 'android', 'mobile', 'windows', 'mac', 'linux' ]
use \Peterujah\NanoBlock\InstagramQuery; $lookup = new InstagramQuery($browserLanguage, $os); $username = "peterchig";
Fine user profile picture
$ig = $lookup->findProfilePic($username); echo $ig->picture; var_dump($ig);
Fine user page ids
$ig = $lookup->findPageId($username); echo $ig->page; var_dump($ig);
Fine user profile id
$ig = $lookup->findProfileId($username); echo $ig->profile; var_dump($ig);
Fine user Instagram name
$ig = $lookup->findProfileName($username); echo $ig->name; var_dump($ig);
Fine user followers
$ig = $lookup->findFollowers($username); echo $ig->followers; var_dump($ig);
Fine user following
$ig = $lookup->findFollowing($username); echo $ig->following; var_dump($ig);
Fine user posts
$ig = $lookup->findPosts($username); echo $ig->posts; var_dump($ig);
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-16