Neuron-PHP is an array of PHP composer based packages that when combined make up a lightweight MVC framework.
It consists of the following components:
Level 1: Foundation
- Core - Core resources, data types and exceptions.
- Formatting - Formatting for currency, dates/times and phone numbers.
- Data - Data objects, parsers, generic settings manager (ini,yaml,memory,env).
- Validation - Validation for many different types of data.
- Patterns - Design patterns such as Singleton, Observer, Criteria, Command and Registry.
- Util - Core utilities like timers, language mapping, .env handling and temporary files.
Level 2: Infrastructure
- Logging - An extensive logging component with many log destinations and formatters.
- Events - Emit events to various broadcasters.
- Application - Facade for creating normal/CLI applications.
- Routing - A simple router that can handle RESTful routes.
- DTO - Dynamically create, validate, and map Data Transfer Objects to foreign data formats.
Level 3: Architecture
- MVC - A lightweight MVC framework.
- Jobs - Job scheduling and execution.
Example Usages