Download the PHP package bywyd/laravel-qol without Composer

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

Laravel QoL

Laravel Quality of Life - A collection of helpful traits, utilities, and tools to enhance your Laravel development experience.

Features

Media Management

Model Enhancements

Authorization

Installation

Install via Composer:

Configuration

Publish the configuration file (optional):

Publish the migrations:

Usage

HasHistory Trait

Track all changes made to your models automatically:

HasImages Trait

Manage images for your models with ease:

HasFiles Trait

Upload and manage any type of file:

HasVideos Trait

Manage video uploads with metadata:

HasUuid Trait

Automatically generate UUIDs for your models:

HasSlug Trait

Automatic slug generation from any field:

HasStatus Trait

Manage model status with convenient methods:

Sortable Trait

Add ordering functionality to your models:

Cacheable Trait

Built-in model caching:

Searchable Trait

Add search functionality:

HasRoles Trait

Complete role and permission system for User models:

Role Model

Manage roles with hierarchical levels:

Permission Model

Create and manage permissions:

Route Protection with Middleware

Protect routes using middleware:

Blade Directives

Use in your Blade templates:

Laravel Gates

Permissions are automatically registered as Gates:

Policy Integration

Use with Laravel Policies:

Creating a Complete Authorization System

HasIntegrations Trait

Manage user integrations with third-party services:

UserIntegration Model

Direct model usage:

Common Integration Examples

Security Features

All sensitive data is automatically encrypted:

The trait uses Laravel's built-in encryption, ensuring data is secure at rest.

Middleware

The package includes 10 production-ready middleware:

SetLocale Middleware

Automatically sets application locale based on multiple sources (priority order):

RestrictAccess Middleware

Maintenance mode with granular access control:

ForceJsonResponse Middleware

Force JSON responses for API applications:

LogRequestResponse Middleware

Log all HTTP requests and responses:

SecurityHeaders Middleware

Add security headers automatically:

RateLimitByUser Middleware

Rate limiting per user or IP:

ConvertEmptyStringsToNull Middleware

Convert empty strings to null in requests:

TrimStrings Middleware

Automatically trim string inputs:

ApiVersioning Middleware

API versioning support:

CorsMiddleware

Advanced CORS handling:

Universal Settings System

Flexible settings system supporting app-wide, per-user, and per-model settings.

App-Wide Settings

Use the Settings facade for application-level settings:

Per-User Settings

Add the HasSettings trait to your User model:

Per-Model Settings

Add the HasSettings trait to any model:

Settings Features

Type Support:

Automatic Caching:

Organization:

Metadata:

Real-World Examples

CommonScopes Trait

Add powerful query scopes to your models:

Available scopes: active(), inactive(), recent(), older(), today(), thisWeek(), thisMonth(), thisYear(), betweenDates(), latest(), oldest(), whereIds(), whereNotIds(), whereLike(), whereEmpty(), whereNotEmpty(), random(), popular(), featured(), published(), draft(), smartPaginate()

ApiResponse Trait

Standardized API responses for controllers:

Available methods: success(), error(), created(), updated(), deleted(), notFound(), unauthorized(), forbidden(), validationError(), serverError(), paginated(), noContent()

Request Macros

Enhanced request handling:

Collection Macros

Extended collection functionality:

Validation Rules

Custom validation rules:

Helper Functions

Global utility functions:

Database Utilities

QueryLogger

Log and analyze database queries:

ModelUtility

Useful model introspection methods:

Usage Examples

Example 1: API Controller with All Features

Example 2: Using Utilities for Performance Monitoring

Example 3: Model with All Traits

Available Traits

Media Traits

Model Enhancement Traits

Authorization System

Requirements

License

The MIT License (MIT). Please see License File for more information.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


All versions of laravel-qol with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3
laravel/framework Version ^10.0|^11.0|^12.0|^13.0
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 bywyd/laravel-qol contains the following files

Loading the files please wait ...