Download the PHP package shawnveltman/livewire-3-property-updater without Composer

On this page you can find all versions of the php package shawnveltman/livewire-3-property-updater. 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 livewire-3-property-updater

A package to update Livewire 2 computed properties to use the Livewire 3 syntax

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

In Livewire 2, a computed property "foo" would be defined like this:

In Livewire 3, the same property would be defined like this:

This package automates that update in your Livewire components folder.

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Two notes on this. First and foremost, the package expects you to have a disk called 'base_path' set up (typically in config/filesystems.php) which points to the base path of the app.

Second - I'm the kind of monster that GREATLY prefers snake_case for method names, so that's the default, but it's easy enough to change it to StudlyCase if that's your preference

Usage for updating computed properties

Check For Invalid Attempts To Set Property To Null in Livewire 3

In Livewire 3, setting a computed property to null will cause an error. After updating, you might find instances in your code where properties are explicitly set to null. This command automates the process of identifying and updating these instances to use unset instead.

When running this command, it'll scan the Livewire components in your specified directory and look for computed properties being set to null. It will replace these instances with the unset function, preventing potential errors in Livewire 3.

Usage for checking null assignments

Identify Dispatch Patterns in Livewire

The shawnveltman:dispatch-identifier command scans your Livewire components for specific dispatch patterns. It's especially useful when identifying or refactoring certain dispatch() method usages in Livewire.

The command filters out dispatches with named arguments and presents an output of file paths with the line numbers where the dispatch() method matches the targeted pattern.

Usage for identifying dispatch patterns

Testing

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of livewire-3-property-updater with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.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 shawnveltman/livewire-3-property-updater contains the following files

Loading the files please wait ....