PHPackages                             midnite81/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. midnite81/core

ActiveLibrary

midnite81/core
==============

A package for core activity within laravel projects

v2.0.34(2mo ago)012.0k↓23.1%1MITPHPPHP ^8.1

Since Aug 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/midnite81/core)[ Packagist](https://packagist.org/packages/midnite81/core)[ RSS](/packages/midnite81-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (16)Versions (86)Used By (1)

midnite81/core
==============

[](#midnite81core)

[![Latest Stable Version](https://camo.githubusercontent.com/e428b63f2c966ce8cb7b7b915f88a57cdd37f8b4d486397dace3f18baa5968ab/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f636f72652f76657273696f6e)](https://packagist.org/packages/midnite81/core) [![Total Downloads](https://camo.githubusercontent.com/5b3a41a5313f283c92a96c8c51e8a7bc9fd3a80b877f0c67b76d98fce16acefe/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f636f72652f646f776e6c6f616473)](https://packagist.org/packages/midnite81/core) [![Latest Unstable Version](https://camo.githubusercontent.com/43cfcee0e73ac2838b8737e87a299a05a07d5401289b5f7e96689d2b47615caa/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f636f72652f762f756e737461626c65)](https://packagist.org/packages/midnite81/core) [![License](https://camo.githubusercontent.com/c5bb5144810eeff716c63d0a18ea9ab84fca2cdade5a722c5102968bc6be40fe/68747470733a2f2f706f7365722e707567782e6f72672f6d69646e69746538312f636f72652f6c6963656e73652e737667)](https://packagist.org/packages/midnite81/core)

This is a package for core activity within laravel projects. This is a work in progress and as such documentation is considered a work in progress and not necessarily as up-to-date as the author would like.

This package contains;

- [Base Action](docs/BaseAction.md)
- [Base Repository](docs/BaseRepository.md)
- [Artisan Commands](docs/Commands.md)
- [Attributes](docs/Attributes.md)
- Converters
    - [Time Conversion](docs/Converters/TimeConvertion.md)
- [Eloquent Helpers](docs/EloquentHelpers.md)
- [Entities, Requests and Responses](docs/Entities_Requests_Responses.md)
- [Exceptions](docs/Exceptions.md)
- [Helper Functions](docs/HelperFunctions.md)
    - [first](docs/HelperFunctions.md#first-value)
    - [uuid](docs/HelperFunctions.md#uuid)
- [Helper Classes](docs/HelperClasses.md)
    - [Arrays](docs/HelperClasses/Arrays.md)
    - [Attempts](docs/HelperClasses/Attempt.md)
    - [ClassRetriever](docs/HelperClasses.md)
    - [HtmlLinks](docs/HelperClasses/HtmlLinks.md)
    - [Matches](docs/HelperClasses/Matches.md)
    - [Strings](docs/HelperClasses.md)
    - [UserAgent](docs/HelperClasses/UserAgent.md)
- [Middleware](docs/Middleware.md)
    - [NoCache](docs/Middleware/NoCache.md)
    - [LogControllerAndMethod](docs/Middleware/LogControllerAndMethod.md)
- [Uuid Generator](docs/UuidGenerator.md)
- Traits
    - [Setters and Getters](docs/Traits/SettersAndGetters.md)
- Transformers
    - [FileLimiter](docs/Transformers/FileLimiter.md)
    - [HumanReadableNumber](docs/Transformers/HumanReadableNumber.md)
- Validation
    - [ValidationHandler](docs/Handlers/ValidationHandler.md)
    - [ValidationExceptionBuilder](docs/Validation/ValidationExceptionBuilder.md))

Attribute Highlights
--------------------

[](#attribute-highlights)

For full attribute usage and examples, see [Attributes](docs/Attributes.md).

- `#[TrimString]` trims a mapped string value for a single property before property handlers and type handlers run.
- `#[TrimStrings]` applies the same trimming behaviour to all mapped string properties on a class.

Installation
------------

[](#installation)

This package requires PHP 8.1+ and has a Laravel Service Provider, which is auto-registered.

To install through composer include the package in your composer.json.

```
"midnite81/core": "^2.0"

```

Run composer install or composer update to download the dependencies, or you can run;

```
composer require midnite81/core
```

### Service Providers

[](#service-providers)

By default, `Midnite81\Core\CoreServiceProvider` is automatically registered by laravel, unless you've actively turned off auto registration in your application. Midnite81\\Core ships with an additional service provider to enable the [Commands](docs/Commands.md) which come with this package. To install this (or both if needed), you need to add them to your `config/app.php`

```
'providers' => [
//  ...
    \Midnite81\Core\CoreServiceProvider::class, // this is auto installed
    \Midnite81\Core\CoreCommandServiceProvider::class
//  ...
]
```

### Configuration files

[](#configuration-files)

You may wish to publish the configuration file if you're planning on using the [FireScriptCommand](docs/Commands/FireScriptsCommand.md) or [QuickFireScriptCommand](docs/Commands/QuickFireScriptsCommand.md)

```
php artisan vendor:publish --provider="Midnite81\Core\CoreServiceProvider"
```

### You're all set!

[](#youre-all-set)

You're now all set to use midnite81/core. If you have any suggestions please me know or log any issues in the [issue section](https://github.com/midnite81/core/issues).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~21 days

Recently: every ~79 days

Total

63

Last Release

68d ago

Major Versions

v1.0.28 → v2.0.02023-04-24

### Community

Maintainers

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

---

Top Contributors

[![midnite81](https://avatars.githubusercontent.com/u/254850?v=4)](https://github.com/midnite81 "midnite81 (244 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/midnite81-core/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[sassnowski/venture

A package to manage complex workflows built on top of Laravel's queue.

825254.5k1](/packages/sassnowski-venture)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[genealabs/laravel-governor

Managing policy and control in Laravel.

201262.8k](/packages/genealabs-laravel-governor)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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