hashem/instaget
最新稳定版本:v1.0.0
Composer 安装命令:
composer require hashem/instaget
包简介
A simple PHP library to get Instagram photos per user
关键字:
README 文档
README
Instaget is a simple PHP library to get Instagram photos per user and to store them on the local server for later usage. Instaget is still in beta, more features will be implemented in the upcoming versions.
Installation
Instaget is available via Composer:
$ composer require hashem/instaget
Usage
use Hashem\Instaget\Instaget as Instaget; use League\Flysystem\Filesystem; use League\Flysystem\AdapterInterface; use League\Flysystem\Adapter\Local as Adapter; # Our (private) Filesystem $fs = new Filesystem(new Adapter(__DIR__.'/'), [ 'visibility' => AdapterInterface::VISIBILITY_PRIVATE ]); $inst = new Instaget($fs, [ 'clientID' => 'YOUR_CLIENT_ID', 'username' => 'USERNAME', # Optional parameters: 'count' => 6, // user feed limit 'imageType' => 'large', // size of the instagram shots 'expTime' => 3600, // image caching exp. time 'imagePath' => 'images/', // path to the image directory, with trailing forward-slash 'dataPath' => 'data/' // path to the user's info directory, with trailing forward-slash ]); # Get/Store the shots! $shots = $inst->run();
Requirements
Instaget requires PHP 5.4+ and League\Flysystem filesystem.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email hashem at qolami dot com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-10