Skip to content

theshem/Instaget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hashem/Instaget

Author Software License Packagist Version Total Downloads

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.

About

A simple PHP library to get Instagram photos per user.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages