Download the PHP package mortezaa97/brands without Composer

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

Brands Package

Latest Version on Packagist Total Downloads

A Laravel package for managing product brands with full API support, authorization policies, and Filament integration.

Features

Installation

You can install the package via composer:

Service Provider Registration

The package will automatically register its service provider. If you need to manually register it, add the following to your config/app.php:

Publish Assets

Publish the configuration file:

Publish migrations (optional, migrations are loaded automatically):

Run Migrations

Run the migrations to create the brands table:

Database Schema

The brands table includes the following fields:

Field Type Description
id bigint Primary key
name string Brand name
slug string URL-friendly identifier
logo string (nullable) Logo file path
status smallint Brand status (active/inactive)
category_id foreignId (nullable) Related category
desc longText (nullable) Brand description
meta_title string (nullable) SEO meta title
meta_desc longText (nullable) SEO meta description
meta_keywords string (nullable) SEO keywords
page_title string (nullable) Page display title
color string (nullable) Brand color theme
created_by foreignId User who created the brand
updated_by foreignId (nullable) User who last updated the brand
deleted_at timestamp (nullable) Soft delete timestamp
created_at timestamp Creation timestamp
updated_at timestamp Last update timestamp

Configuration

The configuration file config/brands.php allows you to customize:

Usage

API Endpoints

The package automatically registers the following API routes:

Get All Brands

Returns a collection of brands with simple resource transformation.

Response:

Get Single Brand

Returns a detailed brand resource including category relationship.

Response:

Using in Your Code

Create a Brand

Query Brands

Update a Brand

Delete a Brand (Soft Delete)

Relationships

The Brand model includes the following relationships:

Category

Created By User

Updated By User

Authorization

The package includes a BrandPolicy for authorization. The following gates are available:

Example usage in your controllers:

API Resources

The package provides two resource transformers:

BrandResource

Full details including relationships and SEO fields.

BrandSimpleResource

Simplified response for list views.

Filament Integration

To integrate with Filament, register the plugin in your panel provider:

Facade

You can use the Brands facade for convenient access:

Global Scope

The Brand model includes a global scope that orders all queries by created_at in descending order (newest first).

Testing

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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


All versions of brands with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/container Version ^8.12|^9.0|^10.0|^11.0|^12.0
illuminate/contracts Version ^8.12|^9.0|^10.0|^11.0|^12.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 mortezaa97/brands contains the following files

Loading the files please wait ...