Download the PHP package tusimo/embed-relation without Composer

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

embed-relation Latest Stable Version Total Downloads

add a new relation is missing from Laravel's ORM. embedsMany extends Eloquent ORM .

Installation

Either PHP 5.6+ is required.

To get the latest version of embedsMany, simply require the project using Composer:

Instead, you may of course manually update your require block and run composer update if you so choose:

Usage

Within your eloquent model class add following line And when we have a json string column as data. We support virtual column and can use cast. And support some new cast, 'integer_array', 'string_array', 'float_array', 'bool_array'

Example:

Consider User has several favorite books and the book_ids just store in the user table as book_ids column. We want this column can to load use relations. So we can do it like this. We have user table just like this.

id user_name book_ids data
1 tusimo 1,2,3 {"address":"NY","follower_ids":"1,3"}
2 john 2,4,7 {"address":"WD","follower_ids":"3"}
3 aly 5 {"address":"LA","follower_ids":"1,2"}

and book table like this,

id book
1 css
2 php
3 javascript
4 database
5 sql
6 python
7 html

If we want to get the books so we can use$user->books. For now I just finished get relation data. Next I will do the save thing And the reverse relation.

Now we can access data like this .

License

The MIT License (MIT). Please see License File for more information.


All versions of embed-relation with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.1
illuminate/container Version ^5.1
illuminate/database Version ^5.1
illuminate/events Version ^5.1
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 tusimo/embed-relation contains the following files

Loading the files please wait ....