Download the PHP package amirsarhang/instagram-php-sdk without Composer

On this page you can find all versions of the php package amirsarhang/instagram-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package instagram-php-sdk

amirsarhang/instagram-php-sdk

Source Code Latest Version Software License PHP Version Total Downloads

It's Instagram Graph SDK for PHP.

With this package you can easily make all requests to Instagram Graph API, like Auth and CRUD. Also, we will have more methods regularly.

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.

Installation

The preferred method of installation is via Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

Or add the following to your composer.json file:

Documentation

Requirements

PHP Version Package Version
>= 7.0 1.x
>= 8.0 2.x

*Please remember that you need verified Facebook APP to use this sdk.
FACEBOOK_APP_ID
FACEBOOK_APP_SECRET

Configuration

Put these values in your .env file:

Auth & Login

Here you can find Facebook Permissions.

Generate & Save User Access Token in your Database.

Then we are ready to generate our page access token, but first we should get all selected page by user, then show them to your user to select which page's access token should be save in Database.

Sample Response

After storing selected page data by user in your database, then you need to call subscribeWebhook() to register this page for get real time Events.

Check this link for more details about page subscriptions.

Usage

Methods

Comment Methods

Get Comment Data

Add Comment

Delete Comment

Hide & UnHide Comment

Messaging Methods

Get Message Data

Send Text Message (Direct Message)

Send Media Message (Direct Message)

I will add more Useful methods as soon as possible :)

Check out the documentation website for detailed information and code examples.

Contributing

Contributions are welcome! Please read CONTRIBUTING for details.

Copyright and License

The amirsarhang/instagram-php-sdk library is copyright © [Amirhossein Sarhangian]() and licensed for use under the MIT License (MIT). Please see LICENSE for more information.


All versions of instagram-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
nickdnk/graph-sdk Version ^7.0.1
vlucas/phpdotenv Version ^5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amirsarhang/instagram-php-sdk contains the following files

Loading the files please wait ....