Download the PHP package werxe/laravel-collection-macros without Composer

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

Laravel Collection Macros

Build Status Software License Latest Version on Packagist Total Downloads

Custom Laravel Collection Macros for Laravel 9.

This package is compliant with the FIG standards PSR-1, PSR-2 and PSR-4 to ensure a high level of interoperability between shared PHP. If you notice any compliance oversights, please send a patch via pull request.

Version Matrix

Version Laravel PHP Version
7.x 9.x >= 8.0
6.x 8.x >= 8.0
5.x 8.x >= 7.3
4.x 7.x >= 7.2.5
3.x 6.x >= 7.2
2.x 5.8.x >= 7.1.3
1.x 5.7.x >= 7.1.3

Getting Started

Install the package via Composer by running:

By default all macros are enabled and the macro name is the lower cased version of the macro class.

If you want to customize which macros are enabled or just rename the macro name, you can do so by publishing the configuration file, by running:

The configuration file is now published at config/werxe/collection-macros/config.php.

Documentation

Available Macros

increment

Increment a value that's inside a Collection

decrement

Decrement a value that's inside a Collection

ksort

Sorts the Collection by its keys.

krsort

Sorts the Collection by its keys in the reverse order

recursive

Recursively convert nested arrays into Laravel Collections.

Contributing

Thank you for your interest in Laravel Collection Macros. Here are some of the many ways to contribute.

Security

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

License

Laravel Collection Macros is licenced under the MIT License (MIT). Please see the license file for more information.


All versions of laravel-collection-macros with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.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 werxe/laravel-collection-macros contains the following files

Loading the files please wait ....