Download the PHP package guiwoda/domain-requirements without Composer

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

DomainRequirements

This package aims to provide a simple and semantic way of decoupling your presentation needs from your domain objects.

The problem

As we build websites, we often start up with straightforward pages that reflect our data structure. The Controllers we build usually depend on some Repository or adapter Service that works as a data abstraction. As the system grows though, this Controllers start depending on multiple of this objects, and the role of the Controller ends up as a huge coordinator of different parts of our Domain Model.

We recognize this as a problem immediately, and move this logic to our Domain layer. This creates a different architecture, where any new data needed by the presentation layer requires changes in our coordination objects inside our Domain, which is a long way to say we have coupled our Domain to our presentation needs!

The proposed solution

The connection between Controllers and the Domain is usually done through encapsulation. The dependency arrows always point to the Domain. But there are implicit dependencies that are pointing outwards from the Domain, and that is what this package aims to change.

Each controller would create a (set of) Requirement object(s). This Requirements are POPOs that will work as Data Transfer Objects between our presentation layer and the domain. In this objects, the Controller will list all its Domain dependencies, and will include also all associated parameters that will be needed to resolve this dependencies.

Requirement objects will be sent to a Responsible object to be resolved. This Responsibles should be associated beforehand in an identity map fashion, indicating what Domain need they promise to resolve. A CallbackResponsible implementation is provided as an easy way to start using this pattern without changing any of your objects' interface. If a callback is not enough, any object can implement Responsible and respond to a Requirement.

TL;DR

Use Requirements to list what you expect from the Domain. Use Responsibles to respond to those needs. Oh, and always program to an interface!


All versions of domain-requirements with dependencies

PHP Build Version
Package Version
No informations.
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 guiwoda/domain-requirements contains the following files

Loading the files please wait ...