PHPackages                             laravel-enso/companies - 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. laravel-enso/companies

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

laravel-enso/companies
======================

Company management dependency for Laravel Enso

4.6.9(2mo ago)452.3k↓13.3%410MITPHP

Since Oct 7Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/laravel-enso/companies)[ Packagist](https://packagist.org/packages/laravel-enso/companies)[ Docs](https://github.com/laravel-enso/companies)[ RSS](/packages/laravel-enso-companies/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (36)Versions (173)Used By (10)

Companies
=========

[](#companies)

[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Stable](https://camo.githubusercontent.com/5f00d01f915f6e72cf7e9eeae023072cd4a6b6449305d20517dfeeb9658a2271/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f636f6d70616e6965732f76657273696f6e)](https://packagist.org/packages/laravel-enso/companies)[![Downloads](https://camo.githubusercontent.com/d6f0c91ae9825255fd80235d0687b80f4026a45353cdd0ffd2b4908dacc03f16/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f636f6d70616e6965732f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/companies)[![PHP](https://camo.githubusercontent.com/da7cf113b588d26fe679dfefe4a15009272ed358ad4e786ad3c78b45faa61d69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/13e1c6005e873e3604c105929ff81499577009976e20ddae075d196d1f72f8e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f636f6d70616e6965732e737667)](https://github.com/laravel-enso/companies/issues)[![Merge Requests](https://camo.githubusercontent.com/7624c5d086368f77d98d3b5ce35ae59432d030031e5d917ee040a03bb1b5d94a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f636f6d70616e6965732e737667)](https://github.com/laravel-enso/companies/pulls)

Description
-----------

[](#description)

Companies adds company management to the Enso administration area.

The package exposes CRUD flows for companies, company-person associations, searchable option lists, and Excel exports. At model level it provides an addressable and notification-aware company model with rememberable lookups, dynamic methods, and helper accessors such as the owner company or the current mandatary.

It is meant for Enso deployments that manage legal entities together with their related people and administrative metadata.

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

[](#installation)

Install the package:

```
composer require laravel-enso/companies
```

Run the package migrations:

```
php artisan migrate
```

Optional publishes:

```
php artisan vendor:publish --tag=companies-factory
php artisan vendor:publish --tag=companies-seeder
```

Features
--------

[](#features)

- Company CRUD endpoints and table endpoints under `administration.companies`.
- Company-person association flow with attach, update, and detach operations.
- Option endpoint for company selectors.
- Morph map registration for the `Company` model.
- Search provider integration and status enum registration.

Usage
-----

[](#usage)

Create and relate companies through the API or directly through the model:

```
use LaravelEnso\Companies\Models\Company;

$company = Company::create([
    'name' => 'Acme SRL',
    'fiscal_code' => 'RO12345678',
]);

$company->attachPerson($personId, 'Administrator');
$company->updateMandatary($personId);
```

Useful helpers on the `Company` model:

- `owner()`
- `mandatary()`
- `attachPerson(int $personId, ?string $position = null)`
- `updateMandatary(?int $mandataryId)`

API
---

[](#api)

### HTTP routes

[](#http-routes)

Companies:

- `GET api/administration/companies/create`
- `POST api/administration/companies`
- `GET api/administration/companies/{company}/edit`
- `PATCH api/administration/companies/{company}`
- `DELETE api/administration/companies/{company}`
- `GET api/administration/companies/initTable`
- `GET api/administration/companies/tableData`
- `GET api/administration/companies/exportExcel`
- `GET api/administration/companies/options`

Company people:

- `GET api/administration/companies/people/{company}`
- `GET api/administration/companies/people/{company}/create`
- `GET api/administration/companies/people/{company}/{person}/edit`
- `POST api/administration/companies/people`
- `PATCH api/administration/companies/people/{person}`
- `DELETE api/administration/companies/people/{company}/{person}`

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/addresses`](https://docs.laravel-enso.com/backend/addresses.html) [↗](https://github.com/laravel-enso/addresses)
- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)
- [`laravel-enso/dynamic-methods`](https://docs.laravel-enso.com/backend/dynamic-methods.html) [↗](https://github.com/laravel-enso/dynamic-methods)
- [`laravel-enso/enums`](https://docs.laravel-enso.com/backend/enums.html) [↗](https://github.com/laravel-enso/enums)
- [`laravel-enso/forms`](https://docs.laravel-enso.com/backend/forms.html) [↗](https://github.com/laravel-enso/forms)
- [`laravel-enso/helpers`](https://docs.laravel-enso.com/backend/helpers.html) [↗](https://github.com/laravel-enso/helpers)
- [`laravel-enso/migrator`](https://docs.laravel-enso.com/backend/migrator.html) [↗](https://github.com/laravel-enso/migrator)
- [`laravel-enso/people`](https://docs.laravel-enso.com/backend/people.html) [↗](https://github.com/laravel-enso/people)
- [`laravel-enso/rememberable`](https://docs.laravel-enso.com/backend/rememberable.html) [↗](https://github.com/laravel-enso/rememberable)
- [`laravel-enso/searchable`](https://docs.laravel-enso.com/backend/searchable.html) [↗](https://github.com/laravel-enso/searchable)
- [`laravel-enso/tables`](https://docs.laravel-enso.com/backend/tables.html) [↗](https://github.com/laravel-enso/tables)
- [`laravel-enso/track-who`](https://docs.laravel-enso.com/backend/track-who.html) [↗](https://github.com/laravel-enso/track-who)

Companion frontend package:

- [`@enso-ui/companies`](https://docs.laravel-enso.com/frontend/companies.html) [↗](https://github.com/enso-ui/companies)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance87

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 60.9% 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 ~17 days

Recently: every ~5 days

Total

158

Last Release

63d ago

Major Versions

1.2.14 → 2.0.02019-03-08

2.4.10 → 3.0.02020-06-30

3.1.21 → 4.0.02022-02-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (143 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (47 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (16 commits)")[![raftx24](https://avatars.githubusercontent.com/u/10864136?v=4)](https://github.com/raftx24 "raftx24 (13 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (6 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (5 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (4 commits)")[![DevIonut](https://avatars.githubusercontent.com/u/19207797?v=4)](https://github.com/DevIonut "DevIonut (1 commits)")

---

Tags

companiescompany-managementlaravellaravel-ensolaravelcompany managementlaravel-ensocompanies

### Embed Badge

![Health badge](/badges/laravel-enso-companies/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-enso-companies/health.svg)](https://phpackages.com/packages/laravel-enso-companies)
```

###  Alternatives

[laravel-enso/localisation

Language and translation management for Laravel Enso

1362.8k11](/packages/laravel-enso-localisation)[laravel-enso/data-import

Excel Importer dependency for Laravel Enso

2044.0k6](/packages/laravel-enso-data-import)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)[laravel-enso/core

The backend shell of a Laravel Enso application

3465.3k206](/packages/laravel-enso-core)[laravel-enso/permissions

Permission management for Laravel Enso

1244.2k52](/packages/laravel-enso-permissions)[laravel-enso/roles

Role management for Laravel Enso

1044.9k32](/packages/laravel-enso-roles)

PHPackages © 2026

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