You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Version ^4.0 is now shutdown ([see](https://support.pixelunion.net/hc/en-us/articles/360041460554-Important-notice-Instagram-feed-removal)). Please upgrade to ^5.0.
11
-
12
11
## Information
13
-
This library offers 2 packages to retrieve your or any Instagram feed without OAuth for PHP.
12
+
Easily fetch your or any Instagram feed without OAuth for PHP
13
+
14
+
**⚠️ Version ^5.0 is no more maintained.**
14
15
15
-
## Version ^5.0
16
+
## Version ^6.0
16
17
This version can retrieve **ANY** Instagram feed using **web scrapping**.
**2020-02-23 : Version ^4.0 is now shutdown ([see](https://support.pixelunion.net/hc/en-us/articles/360041460554-Important-notice-Instagram-feed-removal)). Please upgrade to ^5.0.**
25
-
26
-
~~2018-04-20 : Release of version ^5.0 in parallel of version ^4.0 which still working. (Kudos for [@jannejava](https://github.com/jannejava) and [@cookieguru](https://github.com/cookieguru)**)~~
27
-
28
-
~~2018-04-17 : Now fetching data with screen scraping (thanks [@cookieguru](https://github.com/cookieguru)), please upgrade to version ^5.0~~
26
+
**2020-05-21 : Version 6.0 is released. Please upgrade from ^5.0 for cookies session stability.**
29
27
30
-
~~2018-04-16 : Now fetching data with access token, only for your account (thanks [@jannejava](https://github.com/jannejava)), please upgrade to version ^4.0~~
31
-
32
-
~~2018-04-08 : Due to changes of the Instagram API (again...), you must upgrade to version ^3.0~~
33
-
34
-
~~2018-03-16 : Due to changes of the Instagram API, you must upgrade to version ^2.1~~
35
-
36
-
# Installation of version ^5.0
28
+
# Installation
37
29
38
30
```
39
31
composer require pgrimaud/instagram-user-feed
40
32
```
41
33
42
-
## Usage of version ^5.0
34
+
## Usage
43
35
44
-
**New in 5.3**: CacheManager is no more mandatory is you want to retrieve only Instagram profile. (no pagination)
36
+
**New in 6.0**Cache : This library implements PSR-6 for greatest interoperability.
45
37
46
38
```php
47
-
$api = new Instagram\Api();
48
-
$api->login('username', 'password'); // optional, may be required on shared hosting
49
-
$api->setUserName('robertdowneyjr');
39
+
<?php
40
+
41
+
use Instagram\Api;
42
+
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
50
43
51
-
$feed = $api->getFeed();
44
+
$cachePool = new FilesystemAdapter('Instagram', 0, __DIR__ . '/../cache');
52
45
53
-
echo $feed->getUserName();
54
-
// robertdowneyjr
46
+
$api = new Api($cachePool);
47
+
$api->login('username', 'password'); // Mandatory
48
+
$profile = $api->getProfile('robertdowneyjr');
55
49
56
-
echo $feed->getFullName();
57
-
// Robert Downey Jr. Official
50
+
echo $profile->getUserName(); // robertdowneyjr
58
51
52
+
echo $profile->getFullName(); // Robert Downey Jr. Official
59
53
```
60
54
61
55
### Basic usage :
62
56
63
-
64
57
```php
65
-
$cache = new Instagram\Storage\CacheManager('/path/to/your/cache/folder');
[caption] => The sweetest things are worth waiting for…Susan and I are producing a @Netflix original series, Sweet Tooth, based on the comic by @Jefflemire. Can’t wait to share it with you all. 🦌 👦 @NXonNetflix @warnerbrostv #SweetTooth
You found a bug? You need a new feature? You can [create an issue](https://github.com/pgrimaud/horaires-ratp-api/issues) if needed or contact me on [Twitter](https://twitter.com/pgrimaud_).
0 commit comments