Download the PHP package janecodelife/livewire-secure-properties without Composer

On this page you can find all versions of the php package janecodelife/livewire-secure-properties. 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-secure-properties

Plugin (#1)

🔒 Livewire Secure Properties 🔒

License: MIT Sponsor on GitHub

An elegant, zero-configuration security package for Laravel Livewire 4 that automatically locks all public component properties from client-side manipulation, unless explicitly marked as unlocked.

✅ Auto-lock properties

✅ Zero configuration

✅ Protects against client-side tampering

✅ Unlock specific properties with #[Unlocked]

✅ Supports Livewire 4 (Single & Multiple File)


💡💡 Imagine These Scenarios (Use Cases) 💡💡

🕵️‍♂️ Scenario 1: Account ID Spoofing Or In Details Pages Or In Multiple Step Form

Imagine a multi-step multi-tenant onboarding wizard where you pass a public identifier to keep track of the account being edited:

The Risk: The user alters the $accountId in their browser from 45 to 46, allowing them to view or overwrite data belonging to an entirely different customer or tenant.

The Solution: Since you did not add the #[Unlocked] attribute to $accountId, it is strictly bulletproof. The front-end cannot mutate this state between requests, effortlessly closing broken object-level authorization (BOLA) vulnerabilities without you writing a single line of defensive boilerplate code.

🌍 Scenario 2: Cascading Dropdowns & Relational Tampering (Country ➔ State ➔ City)

Imagine you are building a registration form with cascading dropdowns where selecting a Country loads its States, and selecting a State loads its Cities:

The Risk: If you leave $stateId or $countryId open/unlocked (#[Unlocked]), a malicious user can easily open browser DevTools. They could select a valid State and City for Germany, but manually alter the $stateId or $countryId payload to point to IDs in the USA right before submitting. This bypasses your frontend UI logic and injects corrupted, mismatched relational data into your database (e.g., a user saved with Country: USA, State: Berlin, City: Munich).

The Solution: By leaving the entire chain locked, you force the state mutation to happen safely via secure backend methods (using wire:change instead of direct wire:model). The client cannot forge or desynchronize any parent-child relational IDs, automatically guaranteeing 100% data integrity across your entire cascading chain.


Requirements

Installation

You can install the package via composer:

Usage

1. Single File Components (SFC)

If you are using Livewire 4's native Single File Components layout, you can safely use the #[Unlocked] attribute inside the anonymous class block:

2. Multiple File Components (Class-based)

Video 📺

Configuration

If you need to disable the package globally during specific environments (e.g., local debugging), you can add this environment variable to your .env file:

Security Violations

When a locked property is violated, the package throws a PropertyLockedException with a 403 status code, making it easy to intercept globally or monitor via your error loggers.


💝🤟 Support the Project 🤟💝

Become a Sponsor on GitHub

Every bit of support fuels the expansion of this ecosystem and helps me write cleaner tools for all of us. Thank you for standing behind independent developers!_ 🙏🤟


💝🤟 A huge thank you to our sponsors! 💝🤟


🔗 My Other Plugins

Check out my other open-source tools to supercharge your Neovim environment:


If Have A Question 🤝 (Contact Me) 🤟

I will be there to answer to all messages

Follow on X Subscribe on YouTube


Upcoming 🚀 (Stay Tuned!)

The Ultimate Neovim Config for All Modern Web & Laravel Devs ⚡

Thank You


All versions of livewire-secure-properties with dependencies

PHP Build Version
Package Version
Requires livewire/livewire Version ^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 janecodelife/livewire-secure-properties contains the following files

Loading the files please wait ...