PHPackages                             laramore/base - 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. [Framework](/categories/framework)
4. /
5. laramore/base

AbandonedArchivedLibrary[Framework](/categories/framework)

laramore/base
=============

Commun base for all Laramore projects. Contains Element, Lock, Own, Observer definitions

v0.10.0(5y ago)02.3k3MITPHPPHP &gt;=7.0.8

Since Nov 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/laramore/base)[ Packagist](https://packagist.org/packages/laramore/base)[ RSS](/packages/laramore-base/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (5)Versions (26)Used By (3)

Laramore Base
=============

[](#laramore-base)

Commun base for all Laramore projects. Contains Element, Lock, Own, Observer definitions

Installation
============

[](#installation)

Via composer
------------

[](#via-composer)

In your PHP project, run `composer require laramore/base`.

Usage
=====

[](#usage)

This package is not meant to be used alone. It bundles different base classes, used in different Laramore packages.

Elements
--------

[](#elements)

Elements are a sort of enumeration. They are managed with no specific order and can have different defined values.

### Element

[](#element)

An element has:

- a `name` (used by the manager to different it from others)
- different `values`.

`values` contains at least the key and a value for `"native"`.

An element is invokable. In this way, calling it, stringify it, returning a string value of `"native"`.

After being locked, this instance cannot be changed (`name` and `values`).

### ElementManager

[](#elementmanager)

Manage and regroup elements. This class can only manage one type of elements, defined by `elementClass`.

`definitions` are all possible values commune to all elements. `"native"` is for example commune to all elements.

Exceptions
----------

[](#exceptions)

Laramore use its own expections in order to allow the developer to detect the right exceptions.

### LaramoreException

[](#laramoreexception)

Base exception for all Laramore exceptions.

It stores the instance creating this exception.

### LockException

[](#lockexception)

This exception indicate the an exception occured during locking or that the instance is already locked if it needs to be unlocked to make a modification for example.

### OwnException

[](#ownexception)

This exception indicate the an exception occured during owning or that the instance is already owned if it needs to be unowned to define a new owner for example.

Interfaces
----------

[](#interfaces)

### IsALaramoreProvider

[](#isalaramoreprovider)

Indicate that the provider generate and lock a Laramore manager, fetchable by the developer by `Provider::getManager()`.

### IsLockable

[](#islockable)

Indicate that the class is lockable with the `lock` method.

### IsOwnable

[](#isownable)

Indicate that the class is ownable with the `own` method.

Observers
---------

[](#observers)

Observers allow the developer to proxy Laravel base classes to handle calls, events and more.

### BaseHandler

[](#basehandler)

A handler will group all order all observers for a specific class.

### BaseManager

[](#basemanager)

A manager will group all handlers for a specific observation.

### BaseObserver

[](#baseobserver)

An observer will observe an action on a specific class, managed differently by the handler.

Traits
------

[](#traits)

### HasProperties

[](#hasproperties)

Add a property management, really usefull for Fields.

### IsLocked

[](#islocked)

Add multiple methods for lock management.

### IsOwned

[](#isowned)

Add multiple methods for own management.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

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

Every ~10 days

Recently: every ~23 days

Total

25

Last Release

2106d ago

PHP version history (2 changes)v0.1.0PHP &gt;=7.0.0

v0.2.2PHP &gt;=7.0.8

### Community

Maintainers

![](https://www.gravatar.com/avatar/b43de3f109977bf56836e7035e0d59b763192dfdbdd1fade2262af24299c4ce9?d=identicon)[NastuzziSamy](/maintainers/NastuzziSamy)

---

Top Contributors

[![NastuzziSamy](https://avatars.githubusercontent.com/u/24639904?v=4)](https://github.com/NastuzziSamy "NastuzziSamy (71 commits)")

---

Tags

laravelmanagerobserverlockelementownedLaramoreunlockown

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laramore-base/health.svg)

```
[![Health](https://phpackages.com/badges/laramore-base/health.svg)](https://phpackages.com/packages/laramore-base)
```

###  Alternatives

[laravel/nightwatch

The official Laravel Nightwatch package.

3486.1M13](/packages/laravel-nightwatch)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)

PHPackages © 2026

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