Download the PHP package damianulan/laravel-lucent without Composer

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

Laravel Lucent

Laravel

Laravel Lucent is a utility package for Laravel applications that bundles a small set of reusable primitives:

The package is intentionally lightweight. Most features are opt-in and can be used independently.

Requirements

Installation

Install the package with Composer:

Laravel package discovery registers the service provider automatically.

If you want the package config, translations, and stubs in your application, publish them:

You can also publish individual groups:

What The Package Includes

Services

Lucent\Services\Service is a base class for application services that:

Generate a service class:

Example service:

Execute it from a controller or action:

Useful methods:

Notes:

Magellan Scopes

Lucent\Support\Magellan\MagellanScope lets you discover classes from Composer's class map and filter them with reflection-based rules.

This is useful when you want to locate application classes or approved vendor classes dynamically, for example form builders, policies, handlers, or plugin-like classes.

Generate a scope:

Inline usage:

Custom scope class:

Then use it:

Important behavior:

Helpers available on a filled scope:

Eloquent Traits

Accessible

Adds a local scope named checkAccess() which applies a custom Eloquent scope stored on the model.

The configured scope class must extend Illuminate\Database\Eloquent\Scope.

UUID

Adds UUID primary key support.

Migration example:

The trait disables incrementing and fills the primary key with Str::uuid() on create.

HasUniqueUuid

Adds a unique UUID column without replacing the model primary key.

Migration example:

Lookup methods:

If your UUID column has a different name, override:

VirginModel

Adds convenience helpers around common boolean active and draft flags.

Available helpers:

active() and drafted() scopes only apply when the corresponding fields are present in $fillable.

CascadeDeletes

Deletes related models when the parent model is deleted. This works through the deleted model event, so it does not run for mass deletes that bypass model events.

If cascadeDelete is omitted and lucent.models.auto_cascade_deletes is enabled, Lucent tries to detect deletable relation methods automatically based on the configured relation return types.

You can also block specific relations:

Configuration:

SoftDeletesPrunable

Provides a prunableSoftDeletes() scope for models using Laravel's SoftDeletes.

This scope is used by the pruning command described below.

Helpers

clean_html()

Sanitizes rich HTML input using the package's dedicated Purifier preset.

Examples:

Lucent merges an extra lucent_config entry into purifier.settings at boot time. The defaults are defined in config/lucent.php and allow common rich-text tags, safe links, some formatting classes, and selected inline CSS properties.

class_uses_trait()

Checks whether a class uses a trait anywhere in its inheritance tree.

Signature:

Support Utilities

Lucent\Support\Str\Alphabet

Utility for working with Latin letters, including accented UTF-8 variants.

The class normalizes accented characters to their ASCII base where possible before calculating the alphabet position.

Lucent\Support\Str\Currencies\CurrencyLib

Provides an in-memory ISO 4217 currency dataset.

Returned items use this shape:

Methods:

getByAlpha3() and getByNumeric() validate input format before lookup and throw an exception on invalid values.

Lucent\Console\Git

Structured helper around common git queries and release-oriented commands:

For richer inspection, build a repository-scoped instance:

It also exposes:

Each executed command is captured as a GitResult object with the command, working directory, exit code, output, error output, and inferred caller metadata.

Lucent\Support\Trace

Captures and inspects the current backtrace:

Useful helpers:

You can also build a trace from an exception:

Reflection is used internally to enrich frames with method signatures, namespaces, and callable metadata, making the tool suitable for debugging chained service calls, controller pipelines, and vendor-to-app handoffs.

Artisan Commands

make:service

Creates a service class in App\Services.

make:magellan

Creates a Magellan scope in App\Support\Magellan.

model:prune-soft-deletes

Permanently deletes soft-deleted records for models that:

Run it manually:

Schedule it:

Configure the age threshold in config/lucent.php or through environment:

Configuration

Published config file: config/lucent.php

Main options:

Use magellan.vendor_include when a scope should inspect specific vendor namespaces from the Composer class map.

Typical Use Cases

Caveats

License

MIT. See LICENSE.

Contact

Questions and contributions: [email protected]


All versions of laravel-lucent with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
illuminate/support Version ^11.0|^12.0|^13.0
mews/purifier Version ^3.4
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 damianulan/laravel-lucent contains the following files

Loading the files please wait ...