PHPackages                             mineur/instagram-parser-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mineur/instagram-parser-bundle

ActiveSymfony-bundle[Parsing &amp; Serialization](/categories/parsing)

mineur/instagram-parser-bundle
==============================

A bundle integration of Mineur instagram parser for Symfony

25PHP

Since Jul 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mineur/instagram-parser-bundle)[ Packagist](https://packagist.org/packages/mineur/instagram-parser-bundle)[ RSS](/packages/mineur-instagram-parser-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Twitter Stream API Symfony Bundle
=================================

[](#twitter-stream-api-symfony-bundle)

![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)[![Latest Unstable Version](https://camo.githubusercontent.com/5355e924cf8d2281a7333edd6e16b6444d4dfb3a85b30a34e9e414a7950ed239/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6575722f696e7374616772616d2d7061727365722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/mineur/instagram-parser-bundle)[![Total Downloads](https://camo.githubusercontent.com/0fe7aadc1088388489b34d8b2824713ab46372390ff73c7f33591d27e267284b/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6575722f696e7374616772616d2d7061727365722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/mineur/instagram-parser-bundle)

A Symfony integration of Mineur Instagram Parser Library.

[![](https://camo.githubusercontent.com/4f55e9ea543bc8b65ed0519ad8b14d6c9bdfd79c4cb02b2a817d2f92fbabdc45/68747470733a2f2f7468756d62732e6766796361742e636f6d2f496379496d706f737369626c6543687279736f6d656c69642d73697a655f726573747269637465642e676966)](https://camo.githubusercontent.com/4f55e9ea543bc8b65ed0519ad8b14d6c9bdfd79c4cb02b2a817d2f92fbabdc45/68747470733a2f2f7468756d62732e6766796361742e636f6d2f496379496d706f737369626c6543687279736f6d656c69642d73697a655f726573747269637465642e676966)

Installation
------------

[](#installation)

```
composer require mineur/instagram-parser-bundle:dev-master
```

Basic initialization
--------------------

[](#basic-initialization)

Register this bundle into your application kernel.

```
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Mineur\InstagramParserBundle\InstagramParserBundle(),
        ];
    }
}
```

Then add your query ID in your config file:

```
# app/config/config.yml

instagram_parser:
    query_id: '%your_query_id%'
```

Simple custom command usage
---------------------------

[](#simple-custom-command-usage)

```
// Controllers/DemoController.php

class DemoCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        //...
    }

    public function execute(InputInterface $input, OutputInterface $output)
    {
        /** @var InstagramParser $instagramParser */
        $instagramParser = $this
            ->getContainer()
            ->get('instagram_parser');
        $instagramParser
            ->parse(function(InstagramPost $post) {
                // you can do whatever you want with this output
                // prompt it, enqueue it, persist it into a database ...
                $output->writeln($post);
            });
    }
}
```

Check out the library for full customization of the public stream: [instagram-parser](https://github.com/mineur/instagram-parser)

Command line actions
--------------------

[](#command-line-actions)

Tu use the pre-configured commands:

- To prompt the stream feed on your terminal:

```
bin/console mineur:instagram-parser:consume hello
```

- To enqueue the stream output as a serialized objects in a FIFO Redis queue, type the following:

> This part is subject to RSQueue library and RSQueueBundle. I recommend you to check the [RSQueue documentation](https://github.com/rsqueue/RSQueueBundle)to consume the enqueued objects.

```
bin/console mineur:instagram-parser:enqueue
```

The InstagramPost output
------------------------

[](#the-instagrampost-output)

Consuming the stream will give you an infinite loop of hydrated InstagramPost objects, similar to this one:

```
Mineur\InstagramParser\Model\InstagramPost {#36
  -id: 1539101913268979330
  -comment: """
    ¡Disfruta del sol pero sin quemarte! #wearsunscream #cremasolar
    """
  -commentsCount: 0
  -shortCode: "BVb_QkdhaC"
  -takenAtTimestamp: "149769267"
  -dimensions: Mineur\InstagramParser\Model\MediaDimensions {#31
    -height: 1079
    -width: 1080
  }
  -likesCount: 21
  -mediaSrc: "https://scontent-mrs1-1.cdnins/672_n.jpg"
  -thumbnailSrc: "https://cdninstagr.am/84672_n.jpg"
  -ownerId: "1103553924"
  -video: false
  -commentsDisabled: false
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c39d2aac6ac296199cfc57ef4712cf718af2d5906d05ec4b86acbba182edd45?d=identicon)[alexhoma](/maintainers/alexhoma)

---

Tags

instagram-parserinstagram-scraperphp71symfony-bundlesymfony3

### Embed Badge

![Health badge](/badges/mineur-instagram-parser-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mineur-instagram-parser-bundle/health.svg)](https://phpackages.com/packages/mineur-instagram-parser-bundle)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
