Download the PHP package ralphjsmit/pest-plugin-livewire without Composer

On this page you can find all versions of the php package ralphjsmit/pest-plugin-livewire. 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 pest-plugin-livewire

Test your Livewire forms with Pest

This package provides a convenient way to test your Livewire forms and speed up your workflow. It adds helpers that make repetitive tasks faster, like testing whether properties are required or not.

[!IMPORTANT]
This package works only with Livewire V2 and up to Laravel 10. Therefore, it will not be updated to support Livewire V3 and/or Laravel 11 or higher. The repository will be archived.

Contents

  1. Expectations
    1. expect(...)->toHaveRequiredProperties()
    2. expect(...)->toNotHaveRequiredProperties()
  2. Functions
    1. assertRequiredProperties(...)
    2. assertNotRequiredProperties(...)
    3. validInput(...)

Expectations

expect(...)->toHaveRequiredProperties()

Test whether Livewire properties are required. Consider the following dummy Livewire component:

NB.: Using ->not to negate the test is currently not yet supported.

expect(...)->toNotHaveRequiredProperties()

Test whether Livewire properties aren't required. Let's continue the example from above with a test for the properties that are not required:

NB.: Using ->not to negate the test is currently not yet supported.

Functions

assertRequiredProperties()

Use this function to test whether Livewire properties are required. Consider using an expect(...) call if you want to chain multiple expectations:

assertNotRequiredProperties()

Use this function to test whether Livewire properties aren't required. Consider using an expect(...) call if you want to chain multiple expectations:

validInput()

Use this function to get a ValidInput object (Laravel Collection). It's needed for using the above functions.

General

🐞 If you spot a bug, please submit a detailed issue and I'll try to fix it as soon as possible.

🔐 If you discover a vulnerability, please review our security policy.

🙌 If you want to contribute, please submit a pull request. All PRs will be fully credited. If you're unsure whether I'd accept your idea, feel free to contact me!

🙋‍♂️ Ralph J. Smit


All versions of pest-plugin-livewire with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^8.76|^9.0|^10.0
livewire/livewire Version ^2.8
pestphp/pest Version ^1.17|^2.0
pestphp/pest-plugin Version ^1.0|^2.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 ralphjsmit/pest-plugin-livewire contains the following files

Loading the files please wait ....