Download the PHP package laravel-enso/helpers without Composer

On this page you can find all versions of the php package laravel-enso/helpers. 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 helpers

Helpers

Stable Downloads Issues Merge Requests

Description

Helpers is a shared utility package for the Laravel Enso ecosystem.

It bundles small reusable services, model traits, request helpers, casts, enums, contracts, and exceptions that are consumed by many backend packages. The package is intentionally broad: instead of modelling one business feature, it centralizes low-level building blocks that would otherwise be duplicated across the ecosystem.

Typical use cases include precise decimal arithmetic, monetary calculations, JSON parsing, factory resolution in package models, request key normalization, active-state handling, seeder progress reporting, and a few convenience enums and casts.

Installation

This package is usually installed transitively by other Enso backend packages.

For standalone installation:

No publishing step is required.

Features

Usage

Use Decimals for precise arithmetic:

Use JsonReader to load JSON in different formats:

Use PriceComputor for pricing totals:

Normalize request keys before validation with ToSnakeCase:

ToSnakeCase rewrites nested array keys recursively, so frontend payloads may use camelCase while backend validation rules remain snake_case.

Guard required Eloquent relations before serializing relation-dependent payloads:

The guard returns the loaded relation, so resources can use it directly after the load check.

Use Laravel's native validated input API to exclude validated fields:

Deprecated Traits

The following traits are kept for backwards compatibility only and should not be used in new code:

API

Services

Core helpers:

Financial helpers:

Utility placeholder:

Traits

Model traits:

Request / validation traits:

Seeder traits:

Casts

Enums

Contracts

Exceptions

Depends On

Required Enso packages:

Framework and runtime dependencies:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!


All versions of helpers with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel-enso/enums Version ^3.0
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
doctrine/dbal Version ^3.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 laravel-enso/helpers contains the following files

Loading the files please wait ...