Download the PHP package cse/base-exceptions without Composer
On this page you can find all versions of the php package cse/base-exceptions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cse/base-exceptions
More information about cse/base-exceptions
Files in cse/base-exceptions
Package base-exceptions
Short Description This library provides a simple work with exceptions for both development and production.
License MIT
Homepage https://github.com/cs-eliseev/base-exceptions
Informations about the package base-exceptions
English | Русский
EXCEPTIONS CSE BASE
This library provides a simple work with exceptions for both development and production.
Project repository: https://github.com/cs-eliseev/base-exceptions
DEMO
Introduction
CSE BASE is a set of libraries written in PHP specifically to extend your classes.
A set of basic methods for creating your classes is what you need to quickly create web applications. EXCEPTIONS CSE BASE, allows you to extend classes with exceptions.
CSE BASE was created for the rapid development of web applications.
CSE Base project:
Below you will find some information on how to init library and perform common commands.
Install
You can find the most recent version of this project here.
Composer
Execute the following command to get the latest version of the package:
Or file composer.json should include the following contents:
Git
Clone this repository locally:
Download
Download the latest release here.
Usage
View test model: ModelExceptions.php
See examples: examples-exceptions.php
Create Model Exception
Examples:
Use check instance
Examples:
Throw exception by code error
Examples:
Add msg to exception:
Default error msg:
Get error msg by code error
Examples:
Default error msg:
Testing & Code Coverage
PHPUnit is used for unit testing. Unit tests ensure that class and methods does exactly what it is meant to do.
General PHPUnit documentation can be found at https://phpunit.de/documentation.html.
To run the PHPUnit unit tests, execute:
If you want code coverage reports, use the following:
Used PHPUnit default config:
Donating
You can support this project here. You can also help out by contributing to the project, or reporting bugs. Even voicing your suggestions for features is great. Anything to help is much appreciated.
License
The EXCEPTIONS CSE BASE is open-source PHP library licensed under the MIT license. Please see License File for more information.
GitHub @cs-eliseev