PHPackages                             aleksandro-del-piero/livewire-locked-properties - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aleksandro-del-piero/livewire-locked-properties

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aleksandro-del-piero/livewire-locked-properties
===============================================

Livewire locked properties

1.0.0(2y ago)04MITPHP

Since Dec 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/aleksandro-del-piero/livewire-locked-properties)[ Packagist](https://packagist.org/packages/aleksandro-del-piero/livewire-locked-properties)[ RSS](/packages/aleksandro-del-piero-livewire-locked-properties/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Livewire locked properties for Livewire v. 2
============================================

[](#livewire-locked-properties-for-livewire-v-2)

The package allows you to designate component properties as locked.

### Tested package on Livewire v2.12.6

[](#tested-package-on-livewire-v2126)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require aleksandro_del_piero/livewire-locked-properties
```

Documentation
-------------

[](#documentation)

You need to add a trait to the component AleksandroDelPiero\\LivewireLockedProperties\\Traits\\WithLockedLivewire;

To designate a property as protected, you must add it to a protected property $locked or declare a method locked().

```
namespace App\Http\Livewire;

use Livewire\Component;
use AleksandroDelPiero\LivewireLockedProperties\Traits\WithLockedLivewire;

class TestLivewire extends Component
{
    use WithLockedLivewire;

    public $name;

    protected $locked = [
        'name'
    ];
...

```

or a protected method 'locked'

```
namespace App\Http\Livewire;

use Livewire\Component;
use AleksandroDelPiero\LivewireLockedProperties\Traits\WithLockedLivewire;

class TestLivewire extends Component
{
    use WithLockedLivewire;

    public $name;

    protected function locked(): array
    {
        return ['name'];
    }
...
```

If a component has both a method and a property, the method will take precedence.

License
-------

[](#license)

The MIT License (MIT). Please see [License.md](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

884d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/251c6184057037d957cd699a3b0217c8ee4c18adc55c6fc1cf3f546a94805658?d=identicon)[aleksandro-del-piero](/maintainers/aleksandro-del-piero)

---

Top Contributors

[![aleksandro-del-piero](https://avatars.githubusercontent.com/u/57940924?v=4)](https://github.com/aleksandro-del-piero "aleksandro-del-piero (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aleksandro-del-piero-livewire-locked-properties/health.svg)

```
[![Health](https://phpackages.com/badges/aleksandro-del-piero-livewire-locked-properties/health.svg)](https://phpackages.com/packages/aleksandro-del-piero-livewire-locked-properties)
```

###  Alternatives

[aw-studio/laravel-states

445.6k](/packages/aw-studio-laravel-states)[yzh52521/webman-task

 dynamic crontab task plugin for webman.

171.9k2](/packages/yzh52521-webman-task)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
