Download the PHP package networkrailbusinesssystems/orgplus without Composer

On this page you can find all versions of the php package networkrailbusinesssystems/orgplus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package orgplus

OrgPlus

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

Upgrade guide

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.

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

Cost Centre ($orgPlus->costCentres)

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

Organisation Unit ($orgPlus->organisationUnits)

All information specific to an individual Organisation Unit, such as name and Upns.

Person ($orgPlus->people)

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

Upn ($orgPlus->upns)

All information specific to an individual Upn, such as code, job title, grade, Organisation Unit, 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

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.

Objects are structured as follows:

The required fields for each model must be included to complete the hierarchy map.

Organisation Unit

Organisation Units are related to:

Cost Centre

Cost Centres are related to:

Upn

Person

Counts

Per the hierarchy model, each OrgPlus object "contains" another set of models.

You can check how many OrgPlus objects are contained on a level using the contentsCount(), contentsChildrenCount() and contentsDescendantsCount() methods.

For example, a Upn contains People, and so would return the number of People that Upn has:

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

Organisation Unit

Upn

Person

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

Adjacency lists

You can create adjacency lists for hierarchical queries and lookups using the following methods:

Method Key Value
costCentreAdjacency 12345 /12345/23456/34567
organisationUnitAdjacency Aaa /Aaa/Bbb/Ccc
personAdjacency [email protected] /[email protected]/[email protected]/[email protected]
personUpnAdjacency [email protected] /A123/A234/A345
upnAdjacency A123 /A123/A234/A345

The delimiter, / by default, can be customised as needed.


All versions of orgplus with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^13
spatie/simple-excel Version ^3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package networkrailbusinesssystems/orgplus contains the following files

Loading the files please wait ...