Download the PHP package veiliglanceren/laravel-morph-categories without Composer

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

Laravel Morph Category

Latest Version on Packagist Total Downloads

A Laravel package to add polymorphic category support to any model. Easily attach, detach, sync, and query categories using elegant Eloquent relationships.


๐Ÿš€ Installation

Requirements

Package version PHP Laravel
3.x 8.2 or newer 12.x, 13.x
2.x 8.1 or newer 10.x, 11.x, 12.x

Upgrading to 3.0

Version 3.0 drops support for Laravel 10 and 11 and PHP 8.1, and adds support for Laravel 13. There are no API changes. If you are still on Laravel 10 or 11, stay on ^2.0.


๐Ÿ“ฆ Usage

1. Add Trait to Your Model

2. Attach, Detach & Sync Categories

You can also use slugs or IDs:


โœ… Use Cases

โš™๏ธ Configuration

You can publish and customize the config file:

This will create a file at config/category.php with the following structure:

๐Ÿ” Relationships


๐Ÿ” Query Scoping

You can query models with specific categories:


๐Ÿงช Testing

This package uses Pest and Orchestra Testbench:

Or manually:


๐Ÿ“„ License

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


๐Ÿ‘ค Author

Developed and maintained by Niels Hamelink at VeiligLanceren.nl.


All versions of laravel-morph-categories with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-sluggable Version ^3.0|^4.0
laravel/framework Version ^12.0|^13.0
ext-dom Version *
ext-simplexml Version *
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 veiliglanceren/laravel-morph-categories contains the following files

Loading the files please wait ...