PHPackages                             flyio/laravel-workers - 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. flyio/laravel-workers

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

flyio/laravel-workers
=====================

Auto-scaled queue workers on Fly.io

0.1.0(2y ago)748MITPHP

Since Dec 7Pushed 2y ago7 watchersCompare

[ Source](https://github.com/fly-apps/laravel-worker)[ Packagist](https://packagist.org/packages/flyio/laravel-workers)[ RSS](/packages/flyio-laravel-workers/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Autoscaled Queue Workers on Fly.io
==================================

[](#autoscaled-queue-workers-on-flyio)

This package will create Fly.io Machines machines on-demand as needed when your queue worker reaches certain thresholds.

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

[](#installation)

You can install the package via composer:

```
composer require fly/laravel-workers
```

You can publish the config file with:

```
php artisan vendor:publish --tag="config"
```

This is the contents of the published config file:

```
return [
    'app_name' => env('FLY_APP_NAME'),
    'api_key' => env('FLY_API_KEY'),
    'region' => env('FLY_REGION'),
    'image' => env('FLY_IMAGE_REF'),
    'min_workers' => 2,                 // Number of base workers, always present
    'max_workers' => 10,                // Scale to a max of this many workers
    'scale_controller' => [             // Scale up as directed by this scaler
        'class' => \Fly\Worker\Scalers\JobsPerWorker::class,
        'jobs_per_machine' => 10,
    ],
    'vm' => [
        'cpu_kind' => 'shared', // vs dedicated
        'cpus' => 1,
        'memory_mb' => 1024
    ],
    'connection' => null, // default
    'queue' => null, // default
];
```

Usage
-----

[](#usage)

Add the `fly:work` command to your scheduler to run once a minute, on one server:

```
$schedule->command('fly:work')
    ->onOneServer()
    ->everyMinute();
```

This command will scale up (and down) queue workers on Fly.io machines as directed by the Scaler class.

This assumes you are running your [Laravel application on Fly.io](https://fly.io/docs/laravel/) as well!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ffe7f19bdf080aaa14107239624d682f2e1b139b9459e93b56966649a4d7873?d=identicon)[fideloper](/maintainers/fideloper)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/flyio-laravel-workers/health.svg)

```
[![Health](https://phpackages.com/badges/flyio-laravel-workers/health.svg)](https://phpackages.com/packages/flyio-laravel-workers)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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