Download the PHP package awoyotoyin/zfe-base without Composer

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

Doctrine ORM DB Abstraction

Installation

Register the module

Zend Expressive

Usage

Entity Class

Your Entity class should extend Zfe\Common\Entity\AbstractEntity. The Zfe\Common\Entity\AbstractEntity class defines the Id, CreatedAt and UpdatedAt attributes for your entity. If you are extending from this class, your Entity class must define the lifecycle callbacks as it is required for both the CreatedAt and UpdatedAt attributes.

The Zfe\Common\Entity\AbstractEntity class also exposes a exchangeArray method that takes an array as it's only argument and set your entity members from the array members.

Provider Class

The Provider performs all database related operations hence, this class would mostly contain queries to your Entity. All you have to do is define your Entity class and Zfe\Common\Provider\AbstractProvider does all the heavy lifting

Available methods

Service Class

System Events

This library ships with the Zend\EventManager\EventManager. By default, there are 4 built in events that are triggered before and after the following operations:

To fire off entity specific event, your provider class must set the value of the $entity_event_prefix property. See PostProvider definition above. In which case, the following events are now available to us as well:

To register your own custom event listener, create a .config.php file with contents similar to own below:

There is a sample events.config.php.dist file included in the config folder.

The App\Observer\PostObserver defined above could contain the below code. Replace with your logic


All versions of zfe-base with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
dasprid/container-interop-doctrine Version ^1.1
zendframework/zend-log Version ^2.9
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 awoyotoyin/zfe-base contains the following files

Loading the files please wait ....