Download the PHP package alcidesrc/severe without Composer

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

Continuous Integration

Severe

Avoid data type conflicts in PHP being more severe

[TOC]

Summary

This repository offers a collection of PHP classes that enforce strict data types, ensuring more reliable and maintainable code. By leveraging these classes, developers can reduce bugs, improve code readability, and enhance overall software quality.

Requirements

This library requires PHP^8.3

Installation

Install Severe using Composer:

Supported Data Types

Severe supports the following data types:

Type Category Version
Array Generic 1.0
Boolean Generic 1.0
Closure Generic 1.0
Float Generic 1.0
Integer Generic 1.0
Null Generic 1.0
Object Generic 1.0
String Generic 1.0
Money Finances 1.0
Domain Internet TODO
Email Internet TODO
Document File System TODO
Image File System TODO

Generic Data Types

Usage

Setters

Severe provides a static public method set() that validates the input and creates a data type instance when succeed.

In case of invalid argument type a TypeError is thrown

Getters

All Severe data type instances are _invokable classes so you can get the values as follow:

Ennumeration Classes

Currency

To handle valid currencies a backed enumeration class is provided called Currency which allows you to get the name, symbol, code and decimals for allowed currencies.

Usage
Examples

Additional Data Types

Money

Additionally, Severe provides a custom data type to handle money entities. Those entities has two components:

Usage
Setters

All of those ways are supported and equivalents:

Getters
Examples

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities:

PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY

Supported Versions

Only the latest major version receives security fixes.

Reporting a Vulnerability

If you discover a security vulnerability within this project, please open an issue here. All security vulnerabilities will be promptly addressed.

License

The MIT License (MIT). Please see LICENSE file for more information.


All versions of severe with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
swaggest/json-schema Version ^0.12.42
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 alcidesrc/severe contains the following files

Loading the files please wait ....