Download the PHP package ndp/customcollect without Composer

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

!Issues GitHub forks GitHub stars GitHub license

Laravel Collection Select Statement

About

This package adds a select method statement to the Laravel collection class and allows you to use it similar to a SQL select attribute statement and returns a collection of dynamic objects. Note that laravel select statement before a fetch should still be used. This is approach better fits mutating instances that don't extend the laravel Model class.

Usage:

Lets say you have some classes like these.

A current of way of setting response objects.

The static method get() in this case will return a collection. In most cases, you would need to loop through each object, after manipulating which properties will be send or hidden to front-end, then you could create a dynamic object so this can be passed to the front end as json etc..

A much more convenient way of setting response objects in a collection.

To save some time in data presentation you can use the select statement with a property and its new property name separated by " as ". Also, you can traverse through embedded relation or properties within the given class using the dot operator.Note, in the select method string argument, you can go several properties deep for the objects it will be transversing as shown below.

Note that eager loading it's not necessary. The select method currently supports only getters to fetch its values.

You can also have a callback per looped object.

For properties that need more than just renaming, simply define a method callback at the end the arguments like so. The method callback will contain two parameters.

Package Installation

Install it in your project via composer require.

Optional:



That's it. Best Regards!

All versions of customcollect with dependencies

PHP Build Version
Package Version
No informations.
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 ndp/customcollect contains the following files

Loading the files please wait ....