Download the PHP package beeyev/value-objects-php without Composer

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

ValueObjects PHP Package ๐Ÿซ—

Latest Version on Packagist Supported PHP Versions

โ„น๏ธ Introduction

This package provides a collection of immutable value objects that you can use in your PHP applications.

Value objects are a key concept in Domain-Driven Design (DDD).
They are simple objects whose equality is based on their value rather than their identity.
Using value objects can help you write more expressive, reliable, and maintainable code.

๐Ÿงพ Benefits of using value objects

๐Ÿ“Ž Why use value objects over primitives

๐Ÿ“ฆ Installation

Use Composer to install this package. Run the following command:

โ–ถ๏ธ Usage

Here are examples of how to use the value objects provided by this package:

Email

URL

UUID

IPv4 Address

IPv6 Address

Coordinates

Represents a geographic coordinate (latitude and longitude).

Json

Represents a JSON string.

Percentage

Represents a percentage integer value from 0 to 100.

RangeInteger

Represents a range of integer values.

Resolution

Represents resolution (width and height).

Semantic Version

Represents a semantic version number (SemVer).

Timestamp

Represents a unix timestamp.

Class string

Represents a PHP class string.

๐Ÿ’ Primitive Value Objects

Text

Represents a non-empty text string.

Boolean

Integer

Positive Integer

Represents a positive integer greater than zero. Useful for storing values that must always be positive. For example, a database row ID.

Non-Negative Integer

Represents a non-negative integer, greater than or equal to zero.

Double (float)

Represents a double-precision floating-point number.

Common functionality

Every value object has the following functionality:

๐Ÿ— Creating your own value objects

It is possible to create your own value objects by extending the AbstractValueObject class.

๐Ÿ“š Extending functionality

Feel free to extend the functionality of the value objects by creating your own classes that inherit from the provided value objects.

๐Ÿ› Contributions

If you have suggestions for improvements or wish to create your own custom value object to be included as a built-in feature, please submit a Pull Request.
Additionally, bug reports and feature requests can be submitted via the GitHub Issue Tracker.

ยฉ License

The MIT License (MIT). Please see License File for more information.


If you love this project, please consider giving me a โญ


All versions of value-objects-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 beeyev/value-objects-php contains the following files

Loading the files please wait ....