Download the PHP package litepie/organization without Composer

On this page you can find all versions of the php package litepie/organization. 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 organization

Organization Hierarchy Package

Build Status Packagist PHP from Packagist

GitHub Repository

A Laravel 12 package for managing organizational hierarchy using a single table structure with support for companies, branches, departments, divisions, and sub-divisions. The package includes built-in multi-tenant support for SaaS applications.

Requirements

Features

Installation

Install the package via Composer:

For multi-tenant applications, also install the Litepie Tenancy package:

Publish and run the migrations:

Publish the configuration file:

Configuration

The configuration file config/organization.php allows you to customize:

Multi-Tenant Setup

This package integrates seamlessly with the Litepie\Tenancy package for multi-tenant applications.

  1. Install Litepie Tenancy:

  2. Enable tenancy in organization config:

  3. Configure tenancy package:

  4. Add tenant-aware middleware to routes:

How Multi-Tenancy Works

When tenancy is enabled:

Tenant Detection

The package uses Litepie\Tenancy's flexible tenant detection:

Usage

Basic CRUD Operations

Multi-Tenant Operations

When multi-tenancy is enabled, organizations are automatically scoped to the current tenant:

Working with Multiple Tenants

Querying by Type

Working with Hierarchy

Manager Assignment

User Trait

Add the HasOrganization trait to your User model:

Then use it:

API Endpoints

The package provides RESTful API endpoints:

Events

The package fires the following events:

Testing

Run the tests:

License

This package is open-sourced software licensed under the MIT license.


All versions of organization with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
illuminate/database Version ^12.0
illuminate/events Version ^12.0
illuminate/validation Version ^12.0
litepie/tenancy Version ^1.0
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 litepie/organization contains the following files

Loading the files please wait ....