Download the PHP package woda/laravel-worktrees without Composer

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

Laravel Worktrees

Git worktree management with database cloning for Laravel.

Create isolated development environments from your Laravel project using git worktrees. Each worktree gets its own branch, dependencies, database clone, and frontend build.

Installation

Publish the config (optional):

Configuration

Commands

worktree:create

Create a worktree with full environment isolation.

Options: --branch, --base, --issue, --pr, --skip-deps, --skip-build, --skip-db

worktree:list

worktree:delete

worktree:cleanup

Remove stale worktrees.

worktree:open

Open a worktree in your IDE.

Database Strategies

The database.strategy config determines how databases are cloned:

Strategy Behavior
auto Detect from database.default config
sqlite Copy the SQLite file into the worktree
mysql mysqldump \| mysql into a new database
pgsql pg_dump \| psql into a new database
none Skip database cloning

Docker containers are supported for MySQL and PostgreSQL — set the container name in config and the commands will be wrapped with docker exec.

Port Isolation (Sail)

When running multiple worktrees with Laravel Sail, each worktree needs unique host ports to avoid conflicts. If your .env contains APP_PORT or VITE_PORT, the package will automatically derive unique ports per worktree.

Ports are computed as base + (crc32(name) % 900), giving ranges of 8100–8999 for APP_PORT and 5200–6099 for VITE_PORT by default. Configure the base ports in config/worktrees.php or via environment variables:

Port replacement only applies when the key already exists in your .env file — it won't inject ports you haven't defined.

ProcessManager Contract

The package binds a NullProcessManager by default. To integrate with a process manager (e.g. screen sessions, tmux), implement Woda\Worktrees\Contracts\ProcessManager:

Bind your implementation in a service provider:

Requirements

License

MIT


All versions of laravel-worktrees with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/console Version ^11.0 || ^12.0
illuminate/process 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 woda/laravel-worktrees contains the following files

Loading the files please wait ...