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

On this page you can find all versions of the php package alexok/instagram-sdk-php. 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-sdk-php

Instagram-SDK-PHP

Latest Stable Version Total Downloads Daily Downloads

This is an unofficial SDK for the Instagram Private API in PHP

Motivation

I decided to build this because most libraries for the Instagram Private API I have come across aren't OOP based and are difficult to use.

Donations

If you like this project, please consider donating towards my coffee addiction fund, so I can continue to push commits!

Installation

Composer

If you want to test code that is in the master branch, which hasn't been pushed as a release, you can use dev-master.

Don't have Composer?

What?! Grab it here: https://getcomposer.org/

Examples

Examples can be seen in the examples folder.

Usage

Login

Read: Session Management, to avoid calling login in each script.

Timeline Feed

User Feed

My User Feed

Liked Feed

Tag Feed

Location Feed

User Tags Feed

Like Media

Unlike Media

Delete Media

Comment on Media

Get Media Comments

Delete Media Comments

User Info

User Followers

User Following

GeoMedia

Media Info

Current User Account

Edit User Profile

Set Account Public

Set Account Private

Show Friendship

Follow User

Unfollow User

Block User

Unblock User

Search Tags

Search Users

Search Places (Facebook)

Change Profile Picture

Remove Profile Picture

Post Photo

Edit Media

Get User by Username

Logout

Session Management

To avoid logging in each time, you can use the saveSession and initFromSavedSession methods.

Script 1:

Script 2:

Extras

Pagination

Some Instagram endpoints return paginated data.

To access the next page of data, you will need to get the next maximum ID from the response object and pass it into the same method as the nextMaxId parameter.

Example:

Proxy

Use a Proxy between your Server and the Instagram API

Optional Username/Password Authentication

Enable or Disable Peer Verification, for testing with Charles Proxy etc.

TODO

Contributing

If you would like to contribute to this project, please feel free to submit a pull request.

Before you do, take a look at the issues to see if the functionality you want to contribute to is already in development.

License

MIT

Legal

The name "Instagram" is a copyright of Instagram, Inc.

This project is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram, Inc or any of its affiliates or subsidiaries.

I, the project owner and creator, am not responsible for any legalities that may arise in the use of this project. Use at your own risk.


All versions of instagram-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-curl Version *
php-curl-class/php-curl-class Version ^4.11
netresearch/jsonmapper Version ^0.11.0
ramsey/uuid Version ^3.4
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 alexok/instagram-sdk-php contains the following files

Loading the files please wait ....