Download the PHP package busarm/armie without Composer
On this page you can find all versions of the php package busarm/armie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package armie
Short Description An elegant PHP framework designed to provide high performance with optimal developer experience
License MIT
Informations about the package armie
Table of Contents
- Introduction
- Installation
- Usage
- Traditional HTTP Server
- Single Application
- Multi Tenant Application
- Asynchronous HTTP Server
- Configs
- Using Config Files
- Create Config File
- Add Config File
- Route
- Controller Route
- Anonymous Route
- View Route
- Custom Route Class
- Providers
- Create Provider
- Attach Provider
- Middleware
- Create Middleware
- Attach Middleware
- Bindings
- Add Binding
- Resolve Binding
- Views
- Generic Component
- Dedicated View Model
- Database
- Define Model
- Save Model
- Find Item
- Get List
- Define Repository
- Get Paginated List
- Tests
- License
Introduction
Armie is an expressive and extendable lightweight PHP framework designed to provide high performance with all the essential features needed for quick application development.
It is more suited for small applications or microservices but can easily handle the development of large-scale applications with minimum extension or abstraction.
It includes support for different design paradigms and architectural patterns:
- Model-View-Controller (MVC)
- Service-oriented
- Microservices
- Event Driven
- Asynchronous Queuing
Installation
composer require busarm/armie
Usage
Traditional HTTP Server
Traditional HTTP server using PHP-FPM and NGINX or Apache.
Single Application
Run a single application
Multi Tenant Application
Host multiple applications or modules. Supports path and domain routing
Asynchronous HTTP Server (powered by workerman)
High perfomant Asychronous HTTP Server with support for serveral event-looping providers such as: swoole
, libevent
, ev
, libuv
, react
. Provides the following features:
- Background workers to handle multi processing, asynchronous task and cron job processing
- Socket workers to handle web socket connections
- Concurrency with Promises and built in (
async
,await
,concurrent
) functions - Real-time events with built in (
listen
,dispatch
) functions - Asynchronous queuing with built in (
enqueue
) function
Run command to start application
Configs
Configure application
Using Config Files
Configs can be attached using separate configuration files.
Create Config File
Add config file to your config path. E.g myapp/Configs/database.php
Add Config File
Route
Add HTTP routes.
Controller Route
Anonymous Route
View Route
Custom Route Class
Providers
Extend application features and configurations.
Create Provider
Attach Provider
Middleware
Intercept HTTP request and response. PSR Middleware supported.
Create Middleware
Attach Middleware
Bindings
Bind an interface to a particular class. Hence, the specified class object will be used when resolving dependencies.
Add Binding
Resolve Binding
Views
Generic Component
Add view file to your view path. E.g myapp/Views/login.php
Dedicated View Model
Add view file(s) to your view path. E.g myapp/Views/LoginPage.php
, myapp/Views/components/login.php
Database (Armie ORM)
A simple but expressive database object-relational mapper (ORM) built on top of PHP Data Objects (PDO)
Define Model
Save Model
Find Item
Get List
Define Repository
Get Paginated List
Tests
To execute the test suite, you'll need to install all development dependencies.
You can use PHP server built-in server to test:
License
The Armie Framework is licensed under the MIT license. See License File for more information.
All versions of armie with dependencies
psr/log Version ^2.0
psr/cache Version ^3.0
psr/container Version ^2.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
symfony/console Version ^6.0
symfony/process Version ^6.0
nyholm/psr7 Version ^1.5
guzzlehttp/guzzle Version ^7.5
workerman/workerman Version ^4.1
laravel/serializable-closure Version ^1.3