Download the PHP package othercode/complex-heart without Composer

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

ComplexHeart

Tests codecov

About

The Complex Heart name stands from "Domain-Driven Design: Tackling Complexity in the Heart of Software" Eric Evans Book. This project intends to provide a set of useful classes and tools to ease the adoption of Domain Driven Design into your project.

Domain Modeling: Aggregates, Entities and Value Objects

Complex Heart allows you to model your domain Aggregates, Entities, and Value Objects using a set of traits. Great, but why traits and not classes? Well, sometimes you have some kind of inheritance in your classes. Being forced to use a certain base class is too invasive and personally, I don't like it. By using a set of traits and interfaces you have all the functionality you need without compromising the essence of your own domain.

Let's see a very basic example:

To define a Value Object you only need to use the IsValueObject trait, this will allow you to use some functions like equals() that will automatically compare the value of the objects or initialize() that will allow you to run invariant validations against the object values. Optionally, and recommended, you can use the ValueObject interface.

The available traits are:

On top of those base traits Complex Heart provide ready to use compositions:

Service Bus: Commands, Queries and Events

The Service Bus integration contains some basic interfaces (ServiceBus, CommandBus, QueryBus, and EventBus) and classes to build on top of them.

Check this small example of the usage:

Check the wiki for more detailed examples.

References


All versions of complex-heart with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
ext-json Version *
ramsey/uuid Version ^4.1
nesbot/carbon Version ^2.40
illuminate/collections Version ^8.20
spatie/data-transfer-object Version ^2.6
lambdish/phunctional Version ^2.1
doctrine/instantiator Version ^1.4
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 othercode/complex-heart contains the following files

Loading the files please wait ....