kzarshenas / crazyphp
There is no license information available for the latest version (0.3.0) of this package.
My crazy framework for creating ultra-fast webapps.
0.3.0
2024-10-20 21:33 UTC
Requires
- catfan/medoo: ^2.1
- cboden/ratchet: ^0.4.4
- delight-im/auth: ^8.3
- laminas/laminas-httphandlerrunner: ^2.3
- league/climate: ^3.8
- mezon/router: ^1.5
- nyholm/psr7: ^1.5
- nyholm/psr7-server: ^1.0
- phpfastcache/phpfastcache: ^9.1
- phpmyadmin/sql-parser: ^5.9
- psr/http-message: ^1.0
- splitbrain/php-cli: ^1.1
- symfony/finder: ^6.1
- symfony/yaml: ^6.1
- vlucas/phpdotenv: ^5.6
- zordius/lightncandy: ^1.2
Requires (Dev)
- phpunit/phpunit: ^11
This package is auto-updated.
Last update: 2024-11-13 23:12:21 UTC
README
My crazy framework for creating ultra-fast webapps.
Installation
Install via composer :
composer require kzarshenas/crazyphp
Project
New project :
php vendor/kzarshenas/crazyphp/bin/CrazyCommand new project
Update project :
php vendor/kzarshenas/crazyphp/bin/CrazyCommand update project
Delete project :
php vendor/kzarshenas/crazyphp/bin/CrazyCommand delete project
Router
New router
php vendor/kzarshenas/crazyphp/bin/CrazyCommand new router
Delete router
php vendor/kzarshenas/crazyphp/bin/CrazyCommand delete router
Router Type
New router type
php vendor/kzarshenas/crazyphp/bin/CrazyCommand new routerType
Delete router type
php vendor/kzarshenas/crazyphp/bin/CrazyCommand delete routerType
Extension
New router type
php vendor/kzarshenas/crazyphp/bin/CrazyCommand new extension
Update extension
php vendor/kzarshenas/crazyphp/bin/CrazyCommand update extension
Delete router type
php vendor/kzarshenas/crazyphp/bin/CrazyCommand delete extension
Trash
Clean trash
When you remove router... a backup of the files removed are copy into the trash.
php vendor/kzarshenas/crazyphp/bin/CrazyCommand delete trash
Docker (optionnal)
Create docker compose :
php vendor/kzarshenas/crazyphp/bin/CrazyDocker new
Delete docker compose :
php vendor/kzarshenas/crazyphp/bin/CrazyDocker delete
Up docker compose :
php vendor/kzarshenas/crazyphp/bin/CrazyDocker up
Down docker compose :
php vendor/kzarshenas/crazyphp/bin/CrazyDocker down
Dev
Run test (usign PHPUnit)
php vendor/phpunit/phpunit/phpunit
Default env variables
Env variables of the app are stored in
$GLOBALS["__CRAZY_APP"]
Documentation
- New Project : How to create a new crazy project
- Api
- Api v2
- About Api V2 : All you need to know about Api v2
- Schema of Api Response : Schema of a api request.
- Schema of Api Response : Schema of a json request from backend.
- Special Get Parameters : Special get parameters
- Api v2
- CLI
- Crazy Asset : Register a Crazy Asset
- Crazy Router : Register a Crazy Router
- Core
- Context : Data defined in context
- Docker
- Install Docker : Setup docker of your app
- Mariadb : Docker command for manipulate Mariadb
- Mongo : Docker command for manipulate Mongo DB
- Mysql : Docker command for manipulate Mysql
- Node : Docker command for manipulate NodeJS
- Php : Docker command for manipulate PHP
- Postgresql : Docker command for manipulate Postgresql
- Model
- About Model : How to define a model with Api v2
- Script
- Comment Headers : Rules for the comment header of files like PHP, JS, JSON, YAML...
- Condig Router : Rules for config router
- Context : Schema of the context
- Favicon : Schema of favicons
- Test : Test of the code
- Structure
- Create Folder Structure : Tutoriel to learn how to create folder schema