Download the PHP package diossystem/multicasting without Composer

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

Multicasting of attributes

This is when some attribute can have many types. Values, which have different types of data, storage in one column.

This does your models flexible, their instances can to use an appropriate entitym and those can have different methods and algorithms for handling data. Handling data can be completely different. This provides great possibilities for models and simplifies implementation and reading your code.

Where can I use it?

Use it in your models of Eloquent.

How to do this:

Example #1.1. Configuring the model

Example #1.2. Using instances

Installation

Install the package using Composer:

Setting model

Using the trait

To use these features you need to add the trait to your model.

Example #1

Interface type

The next step, you must choose an interface to implement your handlers for data of the attribute the model and configure the variables.

The default interface for initialization is .

Each interface has its own features.

The base interfaces for initialization:

The base interfaces for filling:

All these interfaces are extended from \Dios\System\Multicasting\Interfaces\MulticastingEntity.

When you need to use your own interface or another interface it must implement .

Assign your chosen interface type to in your model.

Example #2

If you uses not vendor interfaces you must extend or replace the base implementation of the function. This function implements choice an appropriate schema to initialize an instance of a class.

Example #3. Custom interfaces

To add atypical values to your instances during initialization you must extend or replace in your model.

Example #4. A custom interface to set values

Source of a type

The next step, you must assign a source to get the current type of entities. Types are obtained from your DB.

Use to assign your source.

Example #5. The double value

The package implements the two formats of sources of types:

Use single value to set the source of a type from the current model. Use double value to set the source of a type that be in another table.

In the example #4 is used double value: 'af.type|additional_field_id'. The first value is the source of a type. is the relation name and is a storage of types of allowable entities.

Handlers of entities

The next step, you must define handles of entities for allowable types.

Example #6

The and variables must contain handlers for entities. You can use one handler for different types.

The default handler is optional.

These handlers must implement the MulticastingEntity interface.

Property containing a value

You must define the variable. It contains a property of the model to get values for instances of entities (handlers). It is used during initialization an instances.

Often your property will be belong to the 'array' type.

You may use any type and values of the property will be passed to a new instance of the entity.


License: MIT


All versions of multicasting with dependencies

PHP Build Version
Package Version
Requires php Version 7 - 8
illuminate/database Version 5 - 8
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 diossystem/multicasting contains the following files

Loading the files please wait ....