Download the PHP package bfg/object without Composer

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

Extension object

To work with objects and arrays.

GAG Object

The Gag object is designed for recursive data filling and the construction of circuits and its children from the repartition that can be automatically filling. Standard Gag Object connects all classes in the app/Gags folder, all the classes are parsed there automatically fall into the Gag storage.

By default, there is already a harvested Gag object Bfg\Object\Gag which you can use globally for your needs. There is also the opportunity to create its own Gag collection.

Consider the situation with the filling of the standard GAG object:

Implementation methods:

And the initializer will enter it:

If you need to wrap in the GAG already ready component and there is no possibility to overload or replace it, then you can, I added a wrapper for such cases, to the priment, helper view is organized through such a wrapper:

Well, accordingly, if you need to create your Gag object, you can go to the following way:

Static class storage

This is an attribute that allows you to scan the folder on the files with classes and is the list of them for the Static Properties.

Important! The property must be a static public array!

Collection

Adds to the collection of a paginate method, convenient to create a paginator from the collection.

Helpers

pipeline

The organization of pipeline is the same as it is implemented by middleware Laravel.

is_call

When this is called an item.

is_assoc

Check whether an array is associative.

array_merge_recursive_distinct

array_merge_recursive does indeed merge arrays, but it converts values with duplicate keys to arrays rather than overwriting the value in the first array with the duplicate value in the second array, as array_merge does. I.e., with array_merge_recursive, this happens (documented behavior):

array_merge_recursive_distinct does not change the datatypes of the values in the arrays. Matching keys' values in the second array overwrite those in the first array, as is the case with array_merge, i.e.:

Parameters are passed by reference, though only for performance reasons. They're not altered by this function.

array_dots_uncollapse

Expand an array folded into a dot array.

multi_dot_call

Access to an object or/and an array using the dot path method


All versions of object with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
bfg/doc 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 bfg/object contains the following files

Loading the files please wait ....