Download the PHP package net-code/laravel-kit without Composer
On this page you can find all versions of the php package net-code/laravel-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download net-code/laravel-kit
More information about net-code/laravel-kit
Files in net-code/laravel-kit
Download net-code/laravel-kit
More information about net-code/laravel-kit
Files in net-code/laravel-kit
Vendor net-code
Package laravel-kit
Short Description Small, reusable conventions for building Laravel REST APIs: a Clock port, sort direction, paginated-response envelope, an idempotency middleware, ISO country-code rule, and a base context service provider.
License MIT
Package laravel-kit
Short Description Small, reusable conventions for building Laravel REST APIs: a Clock port, sort direction, paginated-response envelope, an idempotency middleware, ISO country-code rule, and a base context service provider.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-kit
net-code/laravel-kit
Small, reusable conventions for building Laravel REST APIs — the framework-level glue that would otherwise be copy-pasted between projects. Extracted from the net-tech portfolio API.
No service provider, no config, no magic: just a handful of classes you reach for directly.
Install
What's inside
| Class | Purpose |
|---|---|
NetCode\Kit\Clock / SystemClock |
Injectable time port + system implementation. Bind Clock to SystemClock (or a fixed clock in tests). |
NetCode\Kit\SortDirection |
asc / desc string enum for list queries. |
NetCode\Kit\Http\PaginatedResponse |
Builds the {meta, links} half of a paginated JSON envelope from the request + page numbers. |
NetCode\Kit\Http\Idempotency |
HTTP idempotency middleware — replays the first successful response for a repeated Idempotency-Key on POST, with a concurrency lock. Cache-store agnostic (the host-provided cache repository); register it under a middleware alias. |
NetCode\Kit\Validation\CountryCode |
Validation rule accepting any ISO 3166-1 alpha-2 country code. |
NetCode\Kit\ContextServiceProvider |
Base service provider with registerBindings() / bootContext() hooks for modular-monolith bounded contexts. |
Usage
Scramble/OpenAPI operation transformers previously shipped here have moved to the dedicated
net-code/laravel-scramblepackage, keeping this kit dependency-light.
License
MIT
All versions of laravel-kit with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.5
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/support Version ^13.0
symfony/intl Version ^8.1
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/support Version ^13.0
symfony/intl Version ^8.1
The package net-code/laravel-kit contains the following files
Loading the files please wait ...