定制 alterebro/instagram-feed 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alterebro/instagram-feed

Composer 安装命令:

composer require alterebro/instagram-feed

包简介

Access the latest Instagram posts without using OAuth, Tokens or APIs

README 文档

README

Get the latest pictures from an Instagram user or hashtag without OAuth credentials or access token. This is not using the Instagram API platform or Graph API so it doesn't need you to authenticate, authorise or register your application anywhere.

Installation

composer require alterebro/instagram-feed

How to use it

require __DIR__ . '/vendor/autoload.php';

use Alterebro\InstagramFeed;

$feed = new InstagramFeed(
    $query,     // i.e: "@alterebro"
    $cachePath  // i.e: __DIR__ . "/tmp/"
);
$feed->JSON();

Parameters

Mandatory :

  • $query : String starting with '@' to retrieve an username or without it to get a hashtag
  • $cachePath : Folder where to store the data. i.e: /tmp/ ( chmod 777 /tmp )

Optional

  • $feedItems : Items to retrieve. Defaults to 6 items.
  • $cacheTime : How long does the cache lasts. Defaults to 86400 seconds (1 day).
  • $cacheForce : Force to cache the data. Defaults to false.
// Retrive 10 items from user @alterebro and stores it on the /tmp/ folder for 12 hours / half day (43200 seconds)
$feed = new InstagramFeed('@alterebro', '/tmp/', 10, 43200);

// Get the data :
$data = $feed->load();

// or Output as JSON :
$feed->JSON();

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固