Download the PHP package alephtools/ddd without Composer

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

DDD Tools

Collection of classes that can be useful to build applications according to Domain Driven Design (DDD).

Table of Contents

Base Domain Classes

DTO

The base class of all domain objects is DTO. DTO allows to embed properties (as in JAVA, C# and some other strictly-typed program languages) in our classes. A class property consists of three elements:

  1. Private or protected class field.
  2. Property description according to PHPDoc (@property) at the class comment.
  3. Optional setter or getter.

DTO is an abstract class. There are two child classes of it: StrictDto and WeakDto. The difference between them is that the first one throws NonExistentPropertyException during class initialization if a property does not exist and the second one isn't.

DTO usage example:

There are some rules to get properties work properly:

DomainObject

DomainObject is a base class for all domain object. It is inherited from StrictDto. All domain objects contains sone useful methods:

  1. equals() to compare domain objects with others.
  2. copy() to create a copy of the domain object.
  3. copyWith() to create a copy of the domain object with the given property values.
  4. hash() to get unique domain object hash.
  5. domainName() to get name of the domain object (it equals class name by default).

ValueObject

ValueObject is a base class for all domain value objects. It has the same methods as DomainObject.

SQL Builder

SQL Builder is a simple wrapper that allows to build SQL query string for some particular RDBMS (MySQL and PostgreSQL are currently only supported). You can use it to be independent of any PHP framework. See the table below to figure out how to use SQL Builder.

MySQL

Select Queries

PHP Expression:

Executed SQL Query:

PHP Expression:

Executed SQL Query:

PHP Expression:

Executed SQL Query:

PHP Expression:

Executed SQL Query:

PHP Expression:

Executed SQL Query:

PHP Expression:

Executed SQL Query:

PHP Expression:

Executed SQL Query:

PostgreSQL


All versions of ddd with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
ext-bcmath Version *
ext-mbstring Version *
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 alephtools/ddd contains the following files

Loading the files please wait ....