Download the PHP package warete/moonshine-upgrade without Composer

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

Moonshine upgrade

A small package that helps automate migration of a MoonShine application to a newer major version. It runs automated code transformations and configuration updates to prepare your codebase for an upgrade. Use the --dry-run option to preview changes before they are applied.

Compatibility

MoonShine moonshine-upgrade Currently supported
>= 3.0 1.* yes

Platform Support

This package is tested and works on:

Windows Users: For the best experience, we recommend using WSL (Windows Subsystem for Linux). The package should work on native Windows, but we cannot guarantee 100% compatibility due to external dependencies (Rector and PHPActor) that may have Windows-specific quirks. If you encounter issues on Windows without WSL, please report them.

Install

Make this before upgrade moonshine version in composer.json:

  1. composer require --dev warete/moonshine-upgrade
  2. php artisan vendor:publish --provider="Warete\MoonshineUpgrade\Providers\MoonshineUpgradeServiceProvider"
  3. php artisan moonshine:upgrade <version>. By default will used last available version.
  4. Then upgrade moonshine version in composer.json and run composer update!

You can specify directory to upgrade by --dir option. For example: php artisan moonshine:upgrade --dir=app/MoonShine/Resources.

Warning

The script performs automated edits to your codebase — files will be changed, and some files may be moved, renamed or removed by the upgrade process. Always make a backup (or use VCS) before running the upgrade. You can use the command option --dry-run to preview changes without writing files.

Use the -v flag to see which files were modified and view their diffs.

The upgrade command can be run multiple times — it will update only the outdated files.

Note — manual follow-up required

Deprecated methods, classes and class properties will receive an automatically added PHPDoc containing an @deprecated tag and a short guidance on what needs to be changed manually. After running the automated upgrade you must review all members marked with @deprecated and apply the instructions in those comments — automated refactoring cannot safely handle all cases and skipping this step may cause your application to behave unexpectedly.

Supported versions to upgrade

Testing

This package includes two types of tests:

Unit Tests (No MoonShine required) ✅

Run lightweight tests that validate Rector rules and fixtures without requiring a full MoonShine installation:

These tests will always pass in CI/CD and during package development.

Full E2E Tests (Requires MoonShine)

To run the complete test suite including end-to-end upgrade tests:

  1. Install MoonShine manually: composer require moonshine/moonshine:^4.0 --dev
  2. Run all tests: composer test:all

Note: MoonShine is intentionally not in require-dev to avoid version conflicts when this package is used within MoonShine applications. The E2E tests are primarily for development and validation in isolated environments.


All versions of moonshine-upgrade with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
rector/rector Version ^2.0
illuminate/support Version ^10|^11|^12
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 warete/moonshine-upgrade contains the following files

Loading the files please wait ...