Download the PHP package roberts/support without Composer

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

Common functions used in Laravel packages

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Traits, Helper functions, and scaffolding tools for Laravel packages & applications.

🚀 Quick Start: Project Scaffolding

Quickly set up GitHub Workflow, Actions and Docker:

This automatically generates:

Scaffolding Documentation →

Features

Project Scaffolding

Model Traits

Model Traits for Status

Installation

You can install the package via composer:

Usage

On packages or Laravel applications that require this package, you can add the Traits to models like:

You may only add 1 of the Status Traits since they all use the same status database column. They are not designed to work together but to replace the functionality with the Enum structures.

Expected Columns

When using any of the Status Traits on a model, add the following format for the status database column on your table:

Note: Status traits automatically set appropriate default values when models are created (e.g., pending for moderator status, active for active status).

When using the HasCreator and/or HasUpdater traits on a model, add the following nullable columns to your table:

Example migration snippet:

The traits automatically:

Overriding the Auth Provider Model

By default, the creator & updater traits resolve the related user model from config('auth.providers.users.model'). If your application uses a different provider or model, ensure the config points to your user class. For example, in config/auth.php:

Or override at runtime (e.g., inside a service provider) if needed:

Enums

Status traits use enums with the following values, setting the first one on model creation:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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


All versions of support with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
spatie/laravel-package-tools Version ^1.93
illuminate/contracts Version ^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 roberts/support contains the following files

Loading the files please wait ...