PHPackages                             jobmetric/laravel-package-core - 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. [CLI &amp; Console](/categories/cli)
4. /
5. jobmetric/laravel-package-core

ActiveLibrary[CLI &amp; Console](/categories/cli)

jobmetric/laravel-package-core
==============================

It is a standard package of different components of Laravel that helps you write different packages better and more fluently

1.38.0(3mo ago)112.7k—10%120MITPHPPHP &gt;=8.0.1

Since Dec 18Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/jobmetric/laravel-package-core)[ Packagist](https://packagist.org/packages/jobmetric/laravel-package-core)[ Docs](https://doc.jobmetric.net/package/laravel-package-core)[ GitHub Sponsors](https://github.com/sponsors/majidmohammadian)[ RSS](/packages/jobmetric-laravel-package-core/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (75)Used By (20)

[![Contributors](https://camo.githubusercontent.com/8e5cbf89de4e91c68e1459312f2f2dc42d0102c24c09ec9f6995680b5a71d90f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6a6f626d65747269632f6c61726176656c2d7061636b6167652d636f72652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/jobmetric/laravel-package-core/graphs/contributors)[![Forks](https://camo.githubusercontent.com/f9d098efe380cad9cd8a2808e9f56ce57ada448619ab9b5564ba5dee30087d6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6a6f626d65747269632f6c61726176656c2d7061636b6167652d636f72652e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d466f726b)](https://github.com/jobmetric/laravel-package-core/network/members)[![Stargazers](https://camo.githubusercontent.com/90d98ac4bb74e0eb12dcdb735df75f3d56822458ea8a6ed6aa73080203adce98/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6a6f626d65747269632f6c61726176656c2d7061636b6167652d636f72652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/jobmetric/laravel-package-core/stargazers)[![MIT License](https://camo.githubusercontent.com/d1f8ee4c40588a4e7c662f54a9f40a7caa2242ec157b4a888a8456c0c7d84ad0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6f626d65747269632f6c61726176656c2d7061636b6167652d636f72652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/jobmetric/laravel-package-core/blob/master/LICENCE.md)[![LinkedIn](https://camo.githubusercontent.com/eb590f47a3fca74584d18db8dd3e985ae3d786f50cd41b7530c3af3885da233c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e6b6564496e2d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e6b6564696e26636f6c6f72423d353535)](https://linkedin.com/in/majidmohammadian)

Laravel Package Core
====================

[](#laravel-package-core)

**Ship Packages Faster. Keep Architecture Consistent.**

Laravel Package Core is the shared foundation behind JobMetric Laravel packages. Stop retyping the same provider wiring, CRUD scaffolding, and response boilerplate in every package and start building domain features with a single, opinionated toolkit. It provides a robust and flexible layer for package bootstrapping, container registration, reusable service patterns, dynamic model relations, resource resolution, and predictable HTTP and service responses—giving you the same structural conventions across packages without sacrificing clarity. This is where serious package development meets developer-friendly consistency—so every new package feels familiar to your team and to integrators.

Why Laravel Package Core?
-------------------------

[](#why-laravel-package-core)

### Fluent Package Bootstrapping

[](#fluent-package-bootstrapping)

Configure what your package registers and publishes—config, migrations, routes, translations, views, assets, commands, and bindings—through one provider-oriented flow instead of scattering ad hoc `mergeConfigFrom`, `loadMigrationsFrom`, and `publishes` calls across custom providers.

### Reusable CRUD Service Layer

[](#reusable-crud-service-layer)

Model domain services with query support, lifecycle hooks, event dispatching, and standardized response contracts using `AbstractCrudService`, matching patterns already proven in packages like Flow.

### Dynamic Relation Mapping

[](#dynamic-relation-mapping)

Register relations at runtime with `HasDynamicRelations` so host applications can extend package models without maintaining forks or editing vendor classes.

### Resource Resolution and Morph Attributes

[](#resource-resolution-and-morph-attributes)

Resolve context-aware resources with `ResourceResolveEvent` and attach morph-based dynamic attributes with `HasMorphResourceAttributes` for flexible APIs and admin experiences.

### Predictable Controller and Service Responses

[](#predictable-controller-and-service-responses)

Keep response shapes consistent with `Output\Response` and `Controllers\HasResponse`, reducing bespoke array payloads duplicated across controllers and services.

### Utilities That Match the Ecosystem

[](#utilities-that-match-the-ecosystem)

Use console scaffolding helpers, enum-oriented utilities, boolean status helpers, and global helper functions aligned with other JobMetric packages.

What is Laravel Package Core?
-----------------------------

[](#what-is-laravel-package-core)

Laravel Package Core is the structural glue for multi-package Laravel ecosystems: it standardizes how packages boot, bind services, publish assets, implement CRUD-style services, and return structured results.

In a typical Laravel monorepo or suite of first-party packages, teams often repeat the same infrastructure work in every provider and service. Laravel Package Core takes a different approach:

- **One bootstrap vocabulary**: Register package capabilities through shared provider patterns instead of one-off copies in each package
- **Shared CRUD conventions**: Query, hooks, events, and response contracts through `AbstractCrudService`
- **Runtime-safe extensibility**: Attach relations and resolve resources without rewriting package internals
- **Consistent responses**: Traits and value objects that keep controllers and domain services speaking the same language
- **Cross-package helpers**: Small utilities and console helpers that behave the same wherever they appear

Consider a domain package that ships migrations, config, routes, and a service consumed by host apps, while still allowing integrators to attach extra relations to your Eloquent models. With Laravel Package Core, you wire bootstrap concerns once, expose predictable service and HTTP responses, and let applications extend models at runtime. The power of a shared core lies not only in saving lines of code but also in making every package easier to onboard, review, and evolve.

What Awaits You?
----------------

[](#what-awaits-you)

By adopting Laravel Package Core, you will:

- **Bootstrap packages consistently** - One pattern for config, routes, migrations, translations, and bindings
- **Reduce duplicated infrastructure** - Shared helpers, traits, and base services instead of copy-paste providers
- **Extend packages safely** - Dynamic relations and resource resolution without editing vendor models
- **Align responses everywhere** - Predictable shapes for controllers and domain services
- **Move faster on new packages** - Spend time on domain logic, not repeated wiring
- **Maintain clean code** - Conventions that mirror other JobMetric packages your team already uses

Quick Start
-----------

[](#quick-start)

Install Laravel Package Core via Composer:

```
composer require jobmetric/laravel-package-core
```

Documentation
-------------

[](#documentation)

Ready to transform your Laravel applications? Our comprehensive documentation is your gateway to mastering Laravel Package Core:

**[📚 Read Full Documentation →](https://jobmetric.github.io/packages/laravel-package-core/)**

The documentation includes:

- **Getting Started** - Quick introduction and how the package fits the ecosystem
- **Installation** - Requirements and Composer setup
- **Showcase** - Real-world wiring from projects that already depend on this foundation
- **Package Core Service Provider** - Bootstrap capabilities, registration, and publishable resources
- **Abstract CRUD Service** - Domain services, queries, hooks, events, and responses
- **Dynamic Relations and Resources** - `HasDynamicRelations`, `ResourceResolveEvent`, and morph resource attributes
- **Controllers and Responses** - `HasResponse` and structured `Output\Response` usage
- **Utilities** - Helpers, console tools, enum patterns, and boolean status helpers

Contributing
------------

[](#contributing)

Thank you for participating in `laravel-package-core`. A contribution guide can be found [here](CONTRIBUTING.md).

License
-------

[](#license)

The `laravel-package-core` is open-sourced software licensed under the MIT license. See [License File](LICENCE.md) for more information.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance83

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~11 days

Total

74

Last Release

113d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b00d08bd4b0b765ee2d33719a535e6cb49c04fb945078a0809d5c05e6f16ee96?d=identicon)[majidmohammadian](/maintainers/majidmohammadian)

---

Top Contributors

[![MajidMohammadian](https://avatars.githubusercontent.com/u/2099965?v=4)](https://github.com/MajidMohammadian "MajidMohammadian (133 commits)")[![Bagheri-Matin](https://avatars.githubusercontent.com/u/239607447?v=4)](https://github.com/Bagheri-Matin "Bagheri-Matin (2 commits)")[![cyber-manager](https://avatars.githubusercontent.com/u/119158486?v=4)](https://github.com/cyber-manager "cyber-manager (1 commits)")

---

Tags

consoleconsole-toolscorecore-managementenum-helperlaravellaravel-packagepackagestatuslaravelpackagecoretoolsjobmetric

### Embed Badge

![Health badge](/badges/jobmetric-laravel-package-core/health.svg)

```
[![Health](https://phpackages.com/badges/jobmetric-laravel-package-core/health.svg)](https://phpackages.com/packages/jobmetric-laravel-package-core)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[ronasit/laravel-entity-generator

Provided console command for generating entities.

2053.1k](/packages/ronasit-laravel-entity-generator)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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