PHPackages                             jooservices/xflickr-crawler - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. jooservices/xflickr-crawler

ActiveLibrary[Queues &amp; Workers](/categories/queues)

jooservices/xflickr-crawler
===========================

Standalone Laravel package for queued Flickr crawling with rate limiting and MySQL persistence.

1.1.2(today)03↑2900%MITPHPPHP ^8.5CI passing

Since Jun 22Pushed todayCompare

[ Source](https://github.com/jooservices/XFlickrCrawler)[ Packagist](https://packagist.org/packages/jooservices/xflickr-crawler)[ RSS](/packages/jooservices-xflickr-crawler/feed)WikiDiscussions develop Synced today

READMEChangelog (4)Dependencies (14)Versions (6)Used By (0)

XFlickr Crawler
===============

[](#xflickr-crawler)

Standalone Laravel 12 package for queued Flickr crawling with MySQL persistence, per-connection API rate limiting, and API call auditing.

Requirements
------------

[](#requirements)

- PHP 8.5+
- Laravel 12
- MySQL
- Redis (queues + rate limiting)
- Horizon or another queue worker (recommended)

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

[](#installation)

```
composer require jooservices/xflickr-crawler
composer require jooservices/laravel-config
```

Publish config (optional):

```
php artisan vendor:publish --tag=xflickr-crawler-config
php artisan vendor:publish --tag=xflickr-crawler-host-integration
```

Run migrations:

```
php artisan migrate
```

**Host app checklist:** [docs/01-getting-started/host-app-integration.md](docs/01-getting-started/host-app-integration.md) — shared Redis, Horizon, scheduler, and `connection_key` strategy.

Configuration
-------------

[](#configuration)

Register Flickr **app profiles** in `jooservices/laravel-config` (see [docs/01-getting-started/app-profiles.md](docs/01-getting-started/app-profiles.md)):

```
use JOOservices\LaravelConfig\Facades\Config;

Config::set('xflickr_app.main', [
    'apiKey' => 'your-key',
    'apiSecret' => 'your-secret',
    'label' => 'Production',
], 'json');
```

Host `.env` (shared with app queue and Horizon):

```
QUEUE_CONNECTION=redis
CACHE_STORE=redis

XFLICKR_DEFAULT_APP_PROFILE=main
XFLICKR_QUEUE=xflickr
XFLICKR_MAX_REQUESTS_PER_HOUR=3300
```

Runtime overrides (via `jooservices/laravel-config`):

- `xflickr.max_requests_per_hour` — per `connection_key`, not per subject NSID
- `xflickr.global_pause`
- `xflickr.dispatch_limit`
- `xflickr.default_app_profile`

Usage
-----

[](#usage)

The package does **not** perform OAuth. Pass a **stable `connection_key`** (rate-limit scope), a JSON token payload, and the Flickr app profile:

```
use JOOservices\XFlickrCrawler\Facades\FlickrService;

$connectionKey = 'user-42';
$token = json_encode([
    'oauthToken' => '...',
    'oauthTokenSecret' => '...',
    'userNsid' => '12037949629@N01',
]);

$conn = FlickrService::connection($connectionKey, $token, appProfile: 'main');

$run = $conn->contacts();
$run = $conn->photos('contact-nsid');
$run = $conn->photosets('contact-nsid');
$run = $conn->galleries('contact-nsid');
```

Each method returns a `CrawlRun` immediately. Work runs asynchronously on the `xflickr` queue via the host’s shared Horizon workers.

Scheduler
---------

[](#scheduler)

```
// routes/console.php
Schedule::command('xflickr:dispatch')->everyMinute();
```

Horizon
-------

[](#horizon)

Add the `xflickr` queue to a Horizon supervisor in the host app:

```
'queue' => ['default', 'xflickr'],
```

Or use the published stub: `stubs/xflickr-horizon-supervisor.php`.

Rate limiter state
------------------

[](#rate-limiter-state)

```
$state = FlickrService::limiterState('user-42');
// max_requests_per_hour, requests_used, requests_remaining, ...
```

Tables
------

[](#tables)

Package-owned tables use the `xflickr_*` prefix: connections, contacts, photos, photosets, galleries, pivots, crawl runs/targets, and API logs.

Development
-----------

[](#development)

```
composer install
composer check      # lint + test
composer ci         # lint + test with coverage (CI)
```

Documentation
-------------

[](#documentation)

AudienceStart hereInstall &amp; config[docs/README.md](docs/README.md)Host app + shared Horizon[docs/01-getting-started/host-app-integration.md](docs/01-getting-started/host-app-integration.md)App profiles[docs/01-getting-started/app-profiles.md](docs/01-getting-started/app-profiles.md)Architecture[docs/00-architecture/overview.md](docs/00-architecture/overview.md)Contributors[CONTRIBUTING.md](CONTRIBUTING.md) · [docs/04-development/03-ci-cd.md](docs/04-development/03-ci-cd.md)AI agents[AGENTS.md](AGENTS.md) · [ai/README.md](ai/README.md)License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/142772948?v=4)[JOOservices Ltd](/maintainers/jooservices)[@jooservices](https://github.com/jooservices)

---

Top Contributors

[![soulevilx](https://avatars.githubusercontent.com/u/2688707?v=4)](https://github.com/soulevilx "soulevilx (2 commits)")

---

Tags

phplaravelcrawlerqueueflickrlaravel12php85JOOservices

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jooservices-xflickr-crawler/health.svg)

```
[![Health](https://phpackages.com/badges/jooservices-xflickr-crawler/health.svg)](https://phpackages.com/packages/jooservices-xflickr-crawler)
```

###  Alternatives

[mpbarlow/laravel-queue-debouncer

A wrapper job for debouncing other queue jobs.

63792.6k1](/packages/mpbarlow-laravel-queue-debouncer)[convenia/pigeon

3234.2k](/packages/convenia-pigeon)[renoki-co/horizon-exporter

Export Laravel Horizon metrics using this Prometheus exporter.

24152.8k](/packages/renoki-co-horizon-exporter)[webparking/laravel-queue-ensurer

This composer package provides a Laravel queue ensurer.

6416.1k](/packages/webparking-laravel-queue-ensurer)

PHPackages © 2026

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