Download the PHP package apie/common-value-objects without Composer

On this page you can find all versions of the php package apie/common-value-objects. 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 common-value-objects

common-value-objects

Latest Stable Version Total Downloads Latest Unstable Version License PHP Composer

PHP Composer

This package is part of the Apie library. The code is maintained in a monorepo, so PR's need to be sent to the monorepo

Documentation

A set of common value object classes that can be used right away or can be used as examples how to make common value objects.

Enums

enums are just PHP enums with common values. They are fully supported by Apie.

Enums Description
Gender Indicate male or female

Identifiers

Identifiers are used by Apie entities to tell the id of an entity. To use these as identifiers for your entity, you need to extend one of these and implement the IdentifierInterface. Otherwise you can also use them as property fields on an entity or a composite value object.

Example:

Class Description
KebabCaseSlug Slug in the shape of "example-slug"
PascalCaseSlug Slug in the shape of "example_slug"
Slug Slug in the shape of "exampleslug"
Uuid Any string in the shape of an uuid
UuidV1 Uuid in version 1 format
UuidV2 Uuid in version 2 format
UuidV3 Uuid in version 3 format
UuidV4 Uuid in version 4 format
UuidV5 Uuid in version 5 format
UuidV6 Uuid in version 6 format

Name value objects

Contains value objects related to names. They are very tolerant what is written in them and support unicode characters to avoid wrong assumptions about what is a valid first and last name.

Class Description
FirstName First name
LastName Last name

Range value objects

Ranges often have a restriction related that for example the start should always be lower than the end. They are often a composite of 2 values.

Class Description
DateTimeRange A range between dates. The first date should always be lower than the last date

Text value objects

At first these value objects seem redundant as you wonder why you should not just use string, but the problem with using string is that it has no restriction on the length of a text. The value object will also mean you can tell an application it requires a non-empty text for example.

Class Description
SmallDatabaseText A string that fits into a database varchar field (255 characters). The text will be trimmed and can be empty.
StrongPasswordField A string used for passwords that are considered strong passwords.

All versions of common-value-objects with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
apie/core Version self.version
apie/country-and-phone-number Version self.version
apie/count-words Version self.version
apie/date-value-objects Version self.version
apie/regex-value-objects Version self.version
apie/text-value-objects Version self.version
devizzent/cebe-php-openapi Version ^1.1.2
egulias/email-validator Version ^4.0.2
symfony/html-sanitizer Version ^7.2
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 apie/common-value-objects contains the following files

Loading the files please wait ...