Download the PHP package eznix86/laravel-litestream without Composer

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

Litestream for Laravel

Litestream is a streaming replication tool for SQLite.

Introduction

This package is built for SQLite-first Laravel apps and will continuously stream SQLite changes to your preferred cloud storage or local files.

This will help you to quickly recover to the point of failure if your server goes down.

Litestream itself runs as a separate process and does not require application-level replication code changes. If you are new to Litestream, start with the official Litestream Getting Started guide and How it works.

Requirements

Windows is not supported.

Installation

Install the package with Composer:

Publish the configuration file:

Get Started

Use this quick sequence to get replication running in a Laravel app.

1) Configure SQLite for Litestream safety

In config/database.php, make sure the target SQLite connection uses:

2) Configure your Litestream replica

Update config/litestream.php:

If you are using S3-compatible storage, review Litestream's official docs for provider-specific endpoint and credential requirements:

IPC Socket

The package can write Litestream's control socket settings into generated YAML:

Defaults:

3) Install Litestream binary

This downloads the latest compatible Litestream binary to litestream.binary_path and marks it executable.

If Litestream is already installed on your server, point to it instead of downloading:

4) Start replication

The command validates configuration, regenerates YAML at litestream.config_path, and starts litestream replicate.

5) Verify status and test restore

For deeper operational guidance, see:

Replicas

Each replicas.<key> entry is passed through to Litestream YAML.

For the complete list of replica options per backend, refer to the official Litestream configuration reference:

Example:

Generated YAML keys become:

Path Modes

path_mode controls how the replica path value is transformed per connection:

V1 behavior applies this only to the flat path field in each replica definition.

Runtime Connection Resolver

By default, commands use config('litestream.connections').

If you need resolve the connections at run time, use resolveConnectionsUsing:

This is useful when you want to:

To return to config-only behavior:

Commands

For native command behavior and all flags, refer to Litestream's upstream command docs:

Testing and Quality

Run tests:

Run static analysis:

Run formatting checks:

Run refactoring checks:

Further Reading

For anything not covered by this package README, use the official Litestream documentation:

License

This package is open-sourced software licensed under the MIT license.


All versions of laravel-litestream with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
symfony/yaml Version ^7.4.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 eznix86/laravel-litestream contains the following files

Loading the files please wait ...