Download the PHP package marcorieser/statamic-instagram without Composer

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

Statamic Instagram Business API

Statamic Instagram Business API lets you fetch data via the Instagram Business API into your Statamic site.

Features

How to Install

You can install this addon via Composer:

How to Use

Installation

Creating a Meta App / an Access Token

Create an Access Token for the API with these steps:

Further information on that topic in Meta's docs.

Display the feed

There is a {{ instagram:feed }} tag, that fetches the media from the API and returns them as an array.

Display a specific media

There is a {{ instagram:media }} tag, that fetches just one specific media.

Display profile data

There is a {{ instagram:profile }} tag, that fetches the profile information from the API and returns them as an array.

Manipulate an image

You can manipulate external Instagram image URLs with Glide as usual:

_Since Statamic v5.43.0, Glide supports external URLs with query params. Therefore, v2 of this addon removes the ability to proxy images and drops the ig_proxy modifier._

Refreshing Tokens

A long-lived access token is valid for two months. This would mean that it has to be refreshed manually before it expires. When using the {{ instagram:feed }} {{ instagram:media }} tags, this is handled automatically for you.

If you use the API exclusively in PHP, please make sure that you update the token yourself via the scheduler:

Please note that the frequency has to be between one day and the mentioned two months until the token expires.

Child Media (Album)

By default, the addon does not fetch child media for e.g. Albums since that requires additional requests to the API. Therefore children is null. In case you need child media, you can enable include_child_posts in the addon config.

Using the API in PHP

There is a dedicated InstagramAPI class to interact with the API. Its public methods are:

For example, this is how you fetch the feed. This will return you a Collection of Media objects.

License

Statamic Instagram Business API is paid software with an open-source codebase. If you want to use it, you’ll need to buy a license from the Statamic Marketplace. The license is valid for only one project. Statamic itself is commercial software and has its own license.


All versions of statamic-instagram with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^11.0|^12.0
statamic/cms Version ^5.43.0
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 marcorieser/statamic-instagram contains the following files

Loading the files please wait ....