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

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