Download the PHP package nystudio107/eagerbeaver without Composer

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

No Maintenance Intended

DEPRECATED

This Craft CMS 2.x plugin is no longer supported, but it is fully functional, and you may continue to use it as you see fit. The license also allows you to fork it and make changes as needed for legacy support reasons.

The Craft CMS 3.x version of this plugin can be found here: craft-eagerbeaver and can also be installed via the Craft Plugin Store in the Craft CP.

Eager Beaver plugin for Craft CMS

Allows you to eager load elements from auto-injected Entry elements on demand from your templates.

Related: Eager Beaver for Craft 3.x

Installation

To install Eager Beaver, follow these steps:

  1. Download & unzip the file and place the eagerbeaver directory into your craft/plugins directory
  2. -OR- do a git clone https://github.com/nystudio107/eagerbeaver.git directly into your craft/plugins folder. You can then update it with git pull
  3. -OR- install with Composer via composer require nystudio107/eagerbeaver
  4. Install plugin in the Craft Control Panel under Settings > Plugins
  5. The plugin folder should be named eagerbeaver for Craft to see it. GitHub recently started appending -master (the branch name) to the name of the folder for zip file downloads.

Eager Beaver works on Craft 2.6.x.

Eager Beaver Overview

Craft's Eager-Loading Elements allows you to nicely optimize your templates by telling Craft to load everything you need in one big query.

The only rub is that you can't specify this eager loading behavior for entry, category, or product elements that are auto-injected into your template.

Eager Beaver is a small plugin that allows you to eager load sub-elements like Assets, Categories, Users, etc. to these auto-injected elements.

This is especially useful if you have pages that use Matrix block "content builders", and thus will typically result in loading a number of relations like Assets contained in Matrix blocks to render a page.

Configuring Eager Beaver

There's nothing to configure.

Using Eager Beaver

To use Eager Beaver, simply do something like:

Or you can use the more verbose syntax to do the same thing:

The first parameter is the Element or array of Elements that you want to eager-load sub-elements into, such as an entry. If you pass in an array of Elements, they must all be the same type.

The second parameter is the same with: that you use for Eager-Loading Elements, and uses the exact same syntax.

In the above example:

Eager Beaver Roadmap

Some things to do, and ideas for potential features:

Brought to you by nystudio107


All versions of eagerbeaver with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.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 nystudio107/eagerbeaver contains the following files

Loading the files please wait ....