PHPackages                             simplecms/company - 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. simplecms/company

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

simplecms/company
=================

公司信息附带单独账号,适用企业类型

1.0.4(1y ago)07MITPHPPHP &gt;=8.2

Since Jul 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hackout/simplecms-company)[ Packagist](https://packagist.org/packages/simplecms/company)[ RSS](/packages/simplecms-company/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

SimpleCMS Company Organization Account Component
================================================

[](#simplecms-company-organization-account-component)

📦 The collection breaks down the account module of the organization company, and can achieve various basic information components of multiple enterprises/agents through attachment extensions.

English | [简体中文](./README_zhCN.md)

[![Latest Stable Version](https://camo.githubusercontent.com/703140d8862c9c8bd89b425bfe66428b6d039c656e6937dd68b441362a74c798/68747470733a2f2f706f7365722e707567782e6f72672f73696d706c65636d732f636f6d70616e792f762f737461626c652e737667)](https://packagist.org/packages/simplecms/company) [![Latest Unstable Version](https://camo.githubusercontent.com/e26ae757b40b9340146e2a46840624790230e04ac7b67a26d704fef0aca9cc85/68747470733a2f2f706f7365722e707567782e6f72672f73696d706c65636d732f636f6d70616e792f762f756e737461626c652e737667)](https://packagist.org/packages/simplecms/company) [![Code Coverage](https://camo.githubusercontent.com/2ee8f0077642b1aa146386a539770cf2e2511f775b86b3c1122c447d4571565f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f766572747275652f656173792d736d732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hackout/simplecms-company/?branch=master) [![Total Downloads](https://camo.githubusercontent.com/199fd8136524ff150c5dcac82048f7b4735d7051e78f2bc746298b8384626db0/68747470733a2f2f706f7365722e707567782e6f72672f73696d706c65636d732f636f6d70616e792f646f776e6c6f616473)](https://packagist.org/packages/simplecms/company) [![License](https://camo.githubusercontent.com/d855fdb65767b8b1e55d811d868e8a6133b15f8da2bc27ce1f930fff38897f8b/68747470733a2f2f706f7365722e707567782e6f72672f73696d706c65636d732f636f6d70616e792f6c6963656e7365)](https://packagist.org/packages/simplecms/company)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- MySql &gt;= 8.0
- [Laravel/Framework](https://packagist.org/packages/laravel/framework) &gt;= 11.0
- [SimpleCMS/Framework](https://packagist.org/packages/simplecms/framework) &gt;= 1.0

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

[](#installation)

```
composer require simplecms/company
```

Usage
-----

[](#usage)

### Model Usage

[](#model-usage)

The model inherits `CompanyAbstract` to add downward associations to Company. The naming of downward associations is named in the plural form of camel based on the file name of the Model. use `CompanyTrait` to add upward `BelongsTo` associations to the model.

```
use \SimpleCMS\Company\Abstracts\CompanyAbstract;
use \SimpleCMS\Company\Traits\CompanyTrait;
class Product extends CompanyAbstract
{
    use CompanyTrait;

    //If companyRelations is not set, the default plural form of Product's camel is used, corresponding key is company_id
    public static function companyRelations(){
        return [
            'products' => 'company_id', //Bind a hasMany relationship 'products' to Company, corresponding key is company_id
            'inventories' => 'supplier_id' // Bind a hasMany relationship 'inventories' to Company, corresponding key is supplier_id
        ];
    }
}
```

### Facades

[](#facades)

Account login is completed through the `CompanyAuthenticatable` facade, and logging will be automatically written after login.

```
use SimpleCMS\Company\Facades\CompanyAuthenticatable;
CompanyAuthenticatable::apiLogin(string $account, string $password, array $messages = []): array //API interface login
CompanyAuthenticatable::guardLogin(string $guard, string $account, string $password, array $messages = []): bool|RedirectResponse; //Traditional AuthGuard login
CompanyAuthenticatable::getAccount(CompanyAccount $account): array //Get basic account information
```

### Logging Events

[](#logging-events)

Logging operations can be automatically handled by adding the `SimpleCMS\Company\Http\Middleware\CompanyLogMiddleware` middleware.

### Models

[](#models)

```
use SimpleCMS\Company\Models\Company; //Company information
use SimpleCMS\Company\Models\CompanyAccount; //Login account
use SimpleCMS\Company\Models\CompanyApply; //Apply for entry
use SimpleCMS\Company\Models\CompanyLog; //Request log
use SimpleCMS\Company\Models\CompanyProfile; //Company profile
use SimpleCMS\Company\Models\CompanySafe; //Account security information
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~1 days

Total

4

Last Release

701d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9741288?v=4)[Dennis Lui](/maintainers/hackout)[@hackout](https://github.com/hackout)

---

Top Contributors

[![hackout](https://avatars.githubusercontent.com/u/9741288?v=4)](https://github.com/hackout "hackout (6 commits)")

---

Tags

laravelcompanySimpleCMS

### Embed Badge

![Health badge](/badges/simplecms-company/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[bagisto/bagisto

Bagisto Laravel E-Commerce

27.6k172.1k9](/packages/bagisto-bagisto)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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