Download the PHP package sinevia/php-library-schemaless without Composer

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

Schemaless

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

A streamlined entity-attribute (EA) implementation for PHP. This package is designed for quick plug and play "schemaless" prototyping. To achieve this the package uses only two database tables unlike the standard EAV (which uses at least three tables).

Install

Using composer

Create storage tables

Uninstall

Delete storage tables

How to Use?

  1. Creating new entities

  2. Set attributes

  3. Get entities

  4. Get attributes

  5. Update entity

  6. Update attribute

  7. Delete entity

  8. Delete attribute

Table Schema

The following schema is used for the database.

Entity
Id String, UniqueId
Status String
Type String
ParentId String, UniqueId
Sequence Integer
Name String
CreatedAt DateTime
DeletedAt DateTime
Udated At DateTime
Attribute
Id String, UniqueId
EntityId String, UniqueId
Key String
Value JSON Text (Long)
CreatedAt DateTime
DeletedAt DateTime
UpdatedAt DateTime

Extend

One can easily extend the default schemaless class, and create his own version. See the example below which custome table names.

Working with Objects

Schemaless provides options to work with Objects instead of with Entities and Attributes. This is achieved with two helper classes - SchemalessDataObject and SchemalessDataObjectRepository.

Note that being an abstraction it will be a bit slower as it will have to hydrate the data objects with data.

1. Creating a Data Object Class

2. Creating a Data Object Reository

3. How to Use


All versions of php-library-schemaless 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 sinevia/php-library-schemaless contains the following files

Loading the files please wait ....