Download the PHP package dentro/laravel-patcher without Composer

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

Laravel Patcher

A (migration like) patcher for a smoldering production update.

Total Downloads GitHub Workflow Status

Requirements:

Installation

Do either of these methods below.

Post Installation

this process is optional, you can skip it though.

patches table creation.

Usage

Create New Patch

for creating a new patch, you need to run these following command

After run that command, you will see new file in patches folder. That file will be like:

Method patch on this file will be filled with your logic. in there is some useful properties that you can use for supporting your patch such as:

  1. $container: \Illuminate\Container\Container
  2. $command: \Illuminate\Console\Command

    we frequently used $command property to print process that we're doing. example:

    you can learn more about \Illuminate\Console\Command here.

  3. $logger: \Illuminate\Log\Logger

    $logger will store log in storage/logs/patches.log. if you want to change it, add this line below in your config/logging.php in channels section.

    you can learn more about \Illuminate\Log\Logger here

    Show Patch Status

Example:

Run Pending Patch(es)

Example:

Conditional Patch

You might need to skip single patch when run . Due to patch is unnecessary or patch is not eligible to run in your environment. Here you can add the method to your patch class to evaluate the condition before running the method.

then the output of will be:

Perpetual Patch

In some cases you might also want to run patches script indefinitely, you can change isPerpetual property on your patch file to true


All versions of laravel-patcher with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^9.0|^10.0|^11.0
illuminate/log Version ^9.0|^10.0|^11.0
illuminate/database Version ^9.0|^10.0|^11.0
illuminate/console Version ^9.0|^10.0|^11.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 dentro/laravel-patcher contains the following files

Loading the files please wait ....