Download the PHP package kieranbrown/laraworker without Composer

On this page you can find all versions of the php package kieranbrown/laraworker. 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 laraworker

Laraworker

PHP 8.5+ Laravel 12 License: MIT

Deploy Laravel applications to Cloudflare Workers via PHP WASM.

Laraworker packages your Laravel app into a compressed tar archive, then runs it on Cloudflare Workers using php-cgi-wasm. On each request, the Worker unpacks the app into an in-memory filesystem and processes it through the PHP WASM runtime — no traditional server required.

Requirements

Installation

Then run the install command to configure your project:

This will:

Configuration

After installation, configure your setup in config/laraworker.php:

Wrangler Configuration

Deployment settings like worker_name, account_id, and compatibility_date are configured in config/laraworker.php. The wrangler.jsonc is auto-generated into .laraworker/ at build time from these config values.

Usage

Laraworker provides five Artisan commands:

laraworker:install

Configure the project for Cloudflare Workers and run an initial build.

laraworker:build

Build the Laravel application for production deployment. Caches config, routes, and views, then packages everything into app.tar.gz.

laraworker:dev

Build and start a local development server using wrangler dev.

laraworker:deploy

Build and deploy to Cloudflare Workers.

laraworker:status

Check installation status, bundle sizes, and tier compatibility.

How It Works

  1. Build — Your Laravel app is optimized (cached config/routes/views, classmap autoload) and packaged into a compressed app.tar.gz
  2. Deploy — The archive and PHP WASM binary are deployed to Cloudflare Workers as static assets
  3. Request — On cold start, the Worker fetches app.tar.gz, unpacks it into an in-memory filesystem (MEMFS), and boots the PHP runtime
  4. Process — Each HTTP request is routed through php-cgi-wasm, which executes your Laravel application and returns the response

The entire bundle (WASM binary + app archive + Worker code) fits within Cloudflare Workers' free tier limit of 3 MB.

Custom Domain Setup

To serve your app from a custom domain, configure your Cloudflare account with the domain and set up routes. The wrangler.jsonc is auto-generated at build time from config/laraworker.php — for advanced wrangler settings, you can customize the stubs/wrangler.jsonc.stub template.

Make sure your domain is added to your Cloudflare account and DNS is configured.

Extensions

Two PHP extensions can be toggled in config/laraworker.php:

Extension Default Size Impact
mbstring Enabled ~742 KiB gzipped
openssl Enabled ~936 KiB gzipped

Disabling unused extensions reduces your bundle size, which can help stay within Cloudflare's tier limits.

License

Laraworker is open-sourced software licensed under the MIT license.


All versions of laraworker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
illuminate/console Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.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 kieranbrown/laraworker contains the following files

Loading the files please wait ...