PHPackages                             networkrailbusinesssystems/orgplus - 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. networkrailbusinesssystems/orgplus

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

networkrailbusinesssystems/orgplus
==================================

Import the OrgPlus CSV

1.2.0(1mo ago)01.0k↓33.3%MITPHPPHP ^8.3

Since Jul 21Pushed 9mo agoCompare

[ Source](https://github.com/Network-Rail-Business-Systems/orgplus)[ Packagist](https://packagist.org/packages/networkrailbusinesssystems/orgplus)[ RSS](/packages/networkrailbusinesssystems-orgplus/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (16)Versions (8)Used By (0)

OrgPlus
=======

[](#orgplus)

[![Composer status](.github/composer.svg)](.github/composer.svg)[![Coverage status](.github/coverage.svg)](.github/coverage.svg)[![Laravel version](.github/laravel.svg)](.github/laravel.svg)[![NPM status](.github/npm.svg)](.github/npm.svg)[![PHP version](.github/php.svg)](.github/php.svg)[![Tests status](.github/tests.svg)](.github/tests.svg)

Import the OrgPlus organisational CSV into a structured series of related objects

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

[](#installation)

Usage
-----

[](#usage)

Call `$orgPlus = OrgPlus::upload($file)` on the controller where you are uploading the OrgPlus CSV.

The `$file` variable can be either a `UploadedFile` or a string path.

The OrgPlus data will be processed and mapped to the relevant objects based on the fields provided.

- Cost Centre (requires `COST_CENTRE` field)
- Person (requires `EMAIL_ADDRESS` field)
- Upn (requires `UPN` field)

These objects are then held in libraries on the OrgPlus object, keyed by their required field.

### Cost Centre ($orgPlus-&gt;costCentres)

[](#cost-centre-orgplus-costcentres)

All information specific to an individual Cost Centre, such as code, people, and Upns.

### Person ($orgPlus-&gt;people)

[](#person-orgplus-people)

All information specific to an individual Person, such as name, e-mail, Cost Centre, and Upn.

### Upn ($orgPlus-&gt;upns)

[](#upn-orgplus-upns)

All information specific to an individual Upn, such as code, job title, grade, Cost Centre, and people.

Bear in mind that a Upn can be shared by any number of people.

Job information is typically held on the Upn, where personal information is held on the Person.

Relationships and hierarchy
---------------------------

[](#relationships-and-hierarchy)

When the relevant fields are available, OrgPlus objects will contain references to other objects.

Both `UPN` and `PARENT_UPN` fields must be provided in the CSV to perform the parent and child hierarchy mapping.

### Cost Centre

[](#cost-centre)

Cost Centres are related to:

- Any number of parent Cost Centres
- Any number of child Cost Centres
- Any number of Upns
- Any number of people

### Person

[](#person)

- Any number of parent people
- Any number of child people
- One UPN
- One Cost Centre

### Upn

[](#upn)

- Any number of parent Upns
- Any number of child Upns
- One Cost Centre
- Any number of people

Linked lists
------------

[](#linked-lists)

You can parse the libraries of models yourself, or you can produce a linked list of values for quick reference.

These linked lists could be stored for later use in a database, or used immediately to find relevant entries in the libraries.

- Cost Centre children
- Cost Centre hierarchy
- Cost Centre parents
- Cost Centre People
- Cost Centre Upns
- Person children
- Person Cost Centre
- Person hierarchy
- Person parents
- Person Upn
- Upn children
- Upn hierarchy
- Upn parents
- Upn Cost Centre
- Upn People

When outputting linked lists, only the first occurrence of an object within a tree section is used to prevent infinite looping.

Roadmap
-------

[](#roadmap)

- Organisation Units
- Nested set

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance71

Regular maintenance activity

Popularity19

Limited adoption so far

Community6

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

Total

5

Last Release

53d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17785811?v=4)[Anthony Edmonds](/maintainers/AnthonyEdmonds)[@AnthonyEdmonds](https://github.com/AnthonyEdmonds)

---

Top Contributors

[![AnthonyEdmonds](https://avatars.githubusercontent.com/u/17785811?v=4)](https://github.com/AnthonyEdmonds "AnthonyEdmonds (16 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/networkrailbusinesssystems-orgplus/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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