Skip to content

InstaSilex is a symfony console build on top of silex and guzzle to fetch data from instagram

Notifications You must be signed in to change notification settings

davidino/instasilex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This repo is simply an experiment to use different libraries:

  • Silex to manage the application
  • Symfony Console to manage the task
  • Guzzle to fetch data from instagram

Installation

Follow this steps:

clone this repo
curl -s http://getcomposer.org/installer | php)
php composer.phar install 
cd vendor && git clone git://github.com/guzzle/guzzle-silex-extension.git

Configuration

You should register a new client from instagram and get "client_secret" and "access_token" (http://instagram.com/developer/clients/manage/)

Then change it directly in console.php execute function

Execution

Now runnging

php src/console.php 
Usage:
  [options] command [arguments]

Options:
 ...

Available commands:
Instagram
  Instagram:sync   Synchronize /v1/users/<user_id>/media/recent/
  help             Displays help for a command
  list             Lists commands

You can run the Instagram:sync task that fetch the "/media/recent/" information from Instagram

$ php src/console.php Instagram:sync <user_id>

or, if you need, you can execute in the browser with

http://your-installation/index.php/user/<user_id>

There is no implementation about data storage. Is a simply task to try different php libraries

About

InstaSilex is a symfony console build on top of silex and guzzle to fetch data from instagram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages