{"id":16463200,"url":"https://github.com/khanof89/instagram","last_synced_at":"2026-05-09T23:49:05.408Z","repository":{"id":57048709,"uuid":"98121841","full_name":"khanof89/instagram","owner":"khanof89","description":"An easy way to communicate with instagram api","archived":false,"fork":false,"pushed_at":"2017-07-24T16:47:09.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T08:29:44.403Z","etag":null,"topics":["instagram","instagram-api","instagram-php-sdk","laravel-instagram"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khanof89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-23T19:54:50.000Z","updated_at":"2017-07-23T21:04:54.000Z","dependencies_parsed_at":"2022-08-23T19:10:13.377Z","dependency_job_id":null,"html_url":"https://github.com/khanof89/instagram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanof89%2Finstagram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanof89%2Finstagram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanof89%2Finstagram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanof89%2Finstagram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khanof89","download_url":"https://codeload.github.com/khanof89/instagram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240995973,"owners_count":19890852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["instagram","instagram-api","instagram-php-sdk","laravel-instagram"],"created_at":"2024-10-11T11:13:44.848Z","updated_at":"2026-05-09T23:49:05.355Z","avatar_url":"https://github.com/khanof89.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel Wrapper for Instagram\n===================\n\n\nThis is a simple package to provide you all the instagram API accessible at one place. While writing this package I had php7.0 installed but can work with php5.6 as well just change the guzzle version. \n\n----------\n\nInstallation\n-------------\n\n    composer require shahrukhkhan/instagram\n\nor add the following in your composer.json file require section\n\n    \"require\": {\n        \"shahrukhkhan/instagram\": \"dev-master\"\n        }    \n\nRequirements\n-------------\n\n - Instagram app\n - Instagram Client Id\n - Instagram Client secret\n - Google maps API key from https://developers.google.com/maps/web/\n\nOnce you have obtained your instagram client id place it in your .env file as: \n\n - INSTAGRAM_CLIENT_ID=\n - INSTAGRAM_REDIRECT_URI= \n - INSTAGRAM_CLIENT_SECRET= \n - GOOGLE_MAPS_KEY= \n\nonce done that access the function by Instagram::functionName($params);\n\nFunctions\n---------\nTo auth with this package use auth() function from your route, you may mention multiple scopes as array \n\n```php\nRoute::get('instagram-auth', function(){\n    return redirect()-\u003eaway(\\Shahrukh\\Instagram\\Instagram::auth($scopes));\n});\n```\n\nList of functions available\n---------------------------\n\n```php\nexchangeCodeForToken() // expects the code you received while authenticating, and gives you access token in return \n\ngetSelf() // gives information about logged in user\n\ngetSelfMedia() // gives media list of logged in user\n\ngetFollowedBy() // expects access token and user id(default is self), return the list of users who follows the user in question\n\ngetFollows() // expects access token and user id(default is self), return the list of users, user in question follows\n\ngetFollowRequest() // expects access token and user id (default is self), return the follow requests user in quesiton received\n\ngetRelationship() // expects access token and user id, get information about a relationship of logged in user with mentioned user id\n\nchangeRelationship() //expects access token and user id, modify the relationship between the current user and the target user.\n\ngetMedia() // expects access token and media id, get information about a media object.\n\nsearchMedia() //expects access token, area and distance (default distance is 1000 mtrs), searches for recent media in a given area.\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhanof89%2Finstagram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhanof89%2Finstagram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhanof89%2Finstagram/lists"}