Download the PHP package jeffersongoncalves/laravel-erp-core without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-erp-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-erp-core
More information about jeffersongoncalves/laravel-erp-core
Files in jeffersongoncalves/laravel-erp-core
Package laravel-erp-core
Short Description ERP core — companies, currencies, units, and submittable-document foundation for the Laravel ERP ecosystem
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-erp
Informations about the package laravel-erp-core
Laravel ERP Core
ERP core — companies, currencies, units, and the submittable-document foundation for the Laravel ERP ecosystem.
This package is the foundation of the Laravel ERP ecosystem. It ships the master-data Eloquent models, migrations, enums, and the reusable "submittable document" concerns (IsSubmittable, HasNamingSeries, HasCompany) that every other erp-* package builds upon.
Features
- Master Data Models — Companies, currencies, currency exchange rates, units of measure, UOM conversions, fiscal years, departments, designations, brands, terms & conditions, addresses, and contacts
- Submittable Documents —
Draft → Submitted → Cancelledlifecycle via theIsSubmittableconcern, with immutability guarantees and ledger-posting hooks - Naming Series — Pattern-based document identifiers (
SINV-.YYYY.-) with safe, per-series incrementing counters - Polymorphic Addresses & Contacts — Attach addresses and contacts to any model
- Customizable Models — Override any model via config while maintaining contract compliance (ModelResolver pattern)
- Table Prefix — Configurable table prefix to avoid naming collisions (default:
erp_) - Contracts & Events —
PostsToLedger,SubmittableDocument,DocumentSubmitted,DocumentCancelled - Translations — English and Brazilian Portuguese
Compatibility
| Package | PHP | Laravel |
|---|---|---|
^1.0 |
^8.2 |
^11.0 \| ^12.0 \| ^13.0 |
Installation
Publish and run the migrations:
Publish the config (optional):
Submittable Documents
Add the IsSubmittable concern to any model with a docstatus column cast to DocStatus:
A submitted document is immutable: any update (other than the controlled transition to cancelled) or delete throws a DomainException. If the model also implements PostsToLedger, postLedgerEntries() is called on submit and reverseLedgerEntries() on cancel.
Naming Series
Database Tables
All tables use the configured prefix (default: erp_):
| Table | Description |
|---|---|
erp_companies |
Companies (with group hierarchy) |
erp_currencies |
Currencies |
erp_currency_exchanges |
Currency exchange rates |
erp_uoms |
Units of measure |
erp_uom_conversions |
UOM conversion factors |
erp_fiscal_years |
Fiscal years |
erp_departments |
Departments (with hierarchy) |
erp_designations |
Designations |
erp_brands |
Brands |
erp_terms_and_conditions |
Terms & conditions templates |
erp_addresses |
Polymorphic addresses |
erp_contacts |
Polymorphic contacts |
erp_naming_series |
Naming-series counters |
Testing
Changelog
Please see CHANGELOG for what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Simão Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-erp-core with dependencies
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/events Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.15