Download the PHP package fyre/entity without Composer

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

FyreEntity

FyreEntity is a free, open-source entity library for PHP.

Table Of Contents

Installation

Using Composer

In PHP:

Entity Creation

Methods

Clean

Clean the entity.

Clear

Clear values from the entity.

Extract

Extract values from the entity.

Extract Dirty

Extract dirty values from the entity.

If the $field argument is omitted, this method will return all dirty values.

Extract Original

Extract original values from the entity.

Fill

Fill the entity with values.

If the mutate option is set to true, and a _setFieldName method exists in the entity (where the field name is field_name), then that method will be called for each value being set. The argument will be the value being populated, and the return value of that method will be stored in the entity instead.

Fill Invalid

Fill the entity with invalid values.

Get

Get a value from the entity.

Alternatively, you can get a value using the magic __get method or array syntax.

If a _getFieldName method exists in the entity (where the field name is field_name), then that method will be called for the value being retrieved. The argument of that method will be the value stored in the entity, and the return value of that method will be returned instead.

Get Accessible

Get the accessible fields from the entity.

Get Dirty

Get the dirty fields from the entity.

Get Error

Get the errors for an entity field.

Get Errors

Get all errors for the entity.

Get Hidden

Get the hidden fields from the entity.

Get Invalid

Get invalid value(s) from the entity.

If the $field argument is omitted, this method will return all invalid values.

Get Original

Get an original value from the entity.

If the $field argument is omitted, this method will return all original values.

Get Source

Get the entity source.

Get Virtual

Get the virtual fields from the entity.

Get Visible

Get the visible fields from the entity.

Has

Determine if an entity value is set.

Alternatively, you can determine if a value is set using the magic __isset method or array syntax.

Has Value

Determine if an entity value is not empty.

Has Errors

Determine if the entity has errors.

Is Accessible

Determine if an entity field is accessible.

Is Dirty

Determine if an entity field is dirty.

If the $field argument is omitted, this method will determine whether the entity has any dirty fields.

Is Empty

Determine if an entity value is empty.

If the $field argument is omitted, this method will determine whether all entity fields are empty.

Is New

Determine if the entity is new.

Set

Set an entity value.

Alternatively, you can set a value using the magic __set method or array syntax.

If the mutate option is set to true, and a _setFieldName method exists in the entity (where the field name is field_name), then that method will be called for the value being set. The argument will be the value being populated, and the return value of that method will be stored in the entity instead.

Set Access

Set whether a field is accessible.

Set Dirty

Set whether a field is dirty.

Set Error

Set errors for an entity field.

Set Errors

Set all errors for the entity.

Set Hidden

Set hidden fields.

Set Invalid

Set an invalid value.

Set New

Set whether the entity is new.

Set Source

Set the entity source.

Set Virtual

Set virtual fields.

To Array

Convert the entity to an array.

To JSON

Convert the entity to a JSON string.

Alternatively, you can cast the value to a string using the magic __toString method.

Unset

Unset an entity value.

Alternatively, you can unset a value using the magic __unset method or array syntax.

Entity Locator

Add Namespace

Add a namespace for locating entities.

Clear

Clear all namespaces and entities.

Find

Find the entity class name for an alias.

Get Default Entity Class

Get the default entity class name.

Get Namespaces

Get the namespaces.

Has Namespace

Check if a namespace exists.

Remove Namespace

Remove a namespace.

Set Default Entity Class

Set the default entity class name.


All versions of entity with dependencies

PHP Build Version
Package Version
Requires fyre/inflector Version ^3.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 fyre/entity contains the following files

Loading the files please wait ....