Download the PHP package azaharizaman/nexus-sequencing without Composer

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

Nexus\Sequencing

Framework-agnostic auto-numbering and sequence generation package.

Overview

Nexus\Sequencing provides a robust, atomic, and transaction-safe system for generating unique sequential identifiers (e.g., invoice numbers, order IDs, reference codes) with customizable patterns, counter management, and advanced features like gap filling, bulk generation, and pattern versioning.

Key Features

Architecture

This package follows the Nexus monorepo architecture:

Package Structure

Core Concepts

1. Sequence Definition

A sequence is defined by:

2. Pattern Variables

Built-in variables:

Custom context variables:

3. Reset Periods

Control when counters reset:

4. Gap Policies

Handle missing numbers in sequences:

5. Overflow Behavior

Define what happens when counter approaches maximum:

Usage Example

Generating a Number

Previewing the Next Number

Bulk Generation

Reserving Numbers

Gap Management

Business Rules

  1. Immutability: Generated numbers cannot be changed once consumed
  2. Atomicity: Database-level locking ensures no duplicates
  3. Transaction Safety: Counter increments roll back with parent transaction
  4. Uniqueness: Sequence name + scope identifier forms a composite key
  5. Manual Override: Overridden values must be greater than the last generated number
  6. Preview Safety: Previewing does not increment the counter
  7. Gap Reclaim: Only voided/cancelled numbers can be reclaimed (if gap_policy allows)

Integration with Atomy

The Laravel application (apps/Atomy) provides:

  1. Eloquent Models: Sequence, SequenceCounter, SequenceReservation, SequenceGap
  2. Repository Implementations: DbSequenceRepository, DbCounterRepository, etc.
  3. Migrations: Database schema for sequences and counters
  4. Service Provider: IoC bindings for dependency injection
  5. API Endpoints: RESTful API for sequence management
  6. Configuration: Tenant-specific sequence definitions

Requirements Coverage

This package fulfills all requirements defined in REQUIREMENTS.csv:

📖 Documentation

Package Documentation

Additional Resources

License

MIT License. See LICENSE for details.

Contributing

This package is part of the Nexus monorepo. See the main ARCHITECTURE.md for contribution guidelines.


All versions of nexus-sequencing with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 azaharizaman/nexus-sequencing contains the following files

Loading the files please wait ...