Download the PHP package fuzzyma/contao-eloquent-bundle without Composer

On this page you can find all versions of the php package fuzzyma/contao-eloquent-bundle. 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 contao-eloquent-bundle

ContaoEloquentBundle

This bundle depends on the great eloquent-bundle from wouterj which makes eloquent usable in symfony. We want to go a step further and integrate Eloquent in Contao.

At the moment this bundle implements

More features which will be implemented:

Guide

1. Install the Bundle

2. Activate the Bundle

In your AppKernel.php add:

This bundles are now active. But we have to configure the eloquent environment. You can see how it works here: eloquent-bundle. But for simplification here is the short version:

3. Configure Eloquent

After this is done we can finally use it

Usage

Say we have a Topic model and a Tag model. Every Topic can have multiple Tags and the other way round. To use Eloquents relation we need a pivot table but contao does not understand pivot tables. Furthermore we want a multiple select field for topics and tags which works just fine. We can do that:

The important part is the model key in the config section and the eloquent key in the tags section. Note: Make sure, that the field-name is the same as defined in the Model. So your Topic Model would look like this:

For further code and other relations see the contao-eloquent-example-project-bundle

Generator

This bundle comes shipped with a command to create the dca file for you which then creates the pivot table. Just run the following command:

For further options run


All versions of contao-eloquent-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5 | ^7.0
symfony/console Version ^3.1
symfony/filesystem Version ^3.1
symfony/http-kernel Version ^3.1
contao/core-bundle Version ^4.2
wouterj/eloquent-bundle Version ^0.2.3
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 fuzzyma/contao-eloquent-bundle contains the following files

Loading the files please wait ....