Download the PHP package hostnet/entity-plugin-lib without Composer

On this page you can find all versions of the php package hostnet/entity-plugin-lib. 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 entity-plugin-lib

entity-plugin-lib

The problem

The Hostnet Entity Composer plugin was developed to solve several problems experienced with plain usage of the Doctrine ORM. Although our solution is inspired on working with doctrine it is perfectly usable for every other way of persisting entities. The problems we came across are:

To solve our problem we borrowed some ideas from another realm of software development, since we felt we were hitting the boundaries of Object Oriented Programming and sought for more modularization. We used the ideas behind Aspect Oriented Programming to solve our problems.

The basic concept: Entities are grouped by responsibility in packages. This plugin links the packages together.

This is awesome for you if;

If you do not belong in one of those groups, be careful since this might not be what you want.

Example

One application needs to know about , but is unaware of the concept of a . Another application requires access to both of them. So in one application, you'd want to be able to call . But in the other, you'd prefer to not know about contracts at all!

With this plugin you can create one package that is purely focussed, and another that is focussed, and that injects the additional functionality (like ) to .

Usage

Creating an extendable package

Congratulations, you now have an extendable entity package.

Extending the package

Follow the steps above, and

Tips

If you run the composer.phar with or or it will show more information.

If you want to extend an entity from your main application, you can use the setting in the extra section of your composer.json.

If you do not want to generate interfaces, you can set the setting to in the extra setting of your composer.json. We will change this to being the default behaviour in a future release.

For a quick overview have a look at the cheatsheet.


All versions of entity-plugin-lib with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
composer-plugin-api Version ^2.0.0
doctrine/annotations Version ^1.13.2
phpdocumentor/type-resolver Version ^1.4.0
symfony/filesystem Version ^5.4||^6.0
twig/twig Version ^3.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 hostnet/entity-plugin-lib contains the following files

Loading the files please wait ....