Download the PHP package plin-code/laravel-instagram-digest without Composer

On this page you can find all versions of the php package plin-code/laravel-instagram-digest. 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 laravel-instagram-digest

laravel-instagram-digest

Latest Version on Packagist Total Downloads

Scrape Instagram hashtags via Apify, filter profiles by keywords and follower threshold, and send a daily Telegram digest with inline action buttons. Classify candidates with one tap.

What it does

  1. Runs the Apify apify~instagram-scraper actor against a list of hashtags.
  2. Filters results by bio/username keyword match and a minimum follower count.
  3. Upserts surviving profiles into instagram_digest_profiles.
  4. Once a day, sends the next N pending profiles as Telegram cards with inline buttons: Interesting, Reject, Show again later. Custom actions pluggable.
  5. Handles the callback when you tap a button: updates the profile status and removes the buttons from the message.

Bring your own data sources (hashtags, keywords, min-followers, chat id) via closures or plain config. Extend with custom action buttons and a custom card renderer.

Installation

Add to your .env:

Quickstart

In AppServiceProvider@boot:

Register the Telegram webhook:

Verify your Telegram setup end-to-end:

The demo uses a placehold.co URL for the placeholder image, so Telegram must be able to fetch that URL. If your network or bot configuration blocks external image fetches, pass a photo URL explicitly:

(Note: the --to option overrides the configured chat_id but currently uses the same placeholder image. For a full dry-run with your own image, register a custom CardRenderer — see below.)

Data sources: resolvers vs config

Every data source has two equivalent ways to supply it.

Via config (config/instagram-digest.php or env):

Via resolver closure (takes precedence when registered):

If no resolver is registered, the package falls back to config.

Custom actions

Register your own inline button:

Replace the default action set entirely:

Any class implementing PlinCode\InstagramDigest\Contracts\DigestAction is accepted.

Custom card rendering

Option A: publish the Blade view and edit it

Then edit resources/views/vendor/instagram-digest/card.blade.php.

Option B: register your own renderer

Your renderer must return a PlinCode\InstagramDigest\Support\CardPayload.

Customizing the webhook route

The webhook is registered by the package at POST /instagram-digest/webhook/{secret?} with the api middleware group. Both the URL prefix and the middleware stack are config-driven — edit config/instagram-digest.php after publishing:

Then adjust:

If you need full control (different HTTP verb, route model binding, custom controller), you can bypass the auto-registered route by setting 'middleware' => ['api', 'should-never-match'] (breaks the route) and defining your own pointing at PlinCode\InstagramDigest\Http\Controllers\WebhookController.

Scheduling

The package does NOT register any scheduled tasks. Wire the commands yourself in routes/console.php:

Events

Listen to the following events to integrate with your own domain:

Event Payload Use case
ProfileDiscovered Profile $profile, bool $isNew Sync to your CRM / lead model — $isNew distinguishes first-time discovery from refresh
ProfileStatusChanged Profile $profile, string $from, string $to React to user classification
DigestSent array $profileIds Metrics, auditing
ScrapingRunCompleted Run $run Notifications

Example listener:

Testing your integration

The package plays nicely with Laravel's HTTP fakes and event fakes. In your own tests:

For the Telegram side, fake api.telegram.org/* and assert via Http::assertSent(...).

Commands

Command Description
instagram-digest:scrape [--sync] Dispatch the Apify scraping job.
instagram-digest:send [--count=N] Dispatch the Telegram digest job.
instagram-digest:webhook [url?] Register the Telegram webhook with Telegram.
instagram-digest:demo [--to=id] Send one fake card to verify Telegram config.

Testing

License

MIT. See LICENSE.md.


All versions of laravel-instagram-digest with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0 || ^13.0
guzzlehttp/guzzle Version ^7.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 plin-code/laravel-instagram-digest contains the following files

Loading the files please wait ...