kzarshenas/crazyphp

There is no license information available for the latest version (0.7.0) of this package.

My crazy framework for creating ultra-fast webapps.

0.7.0 2025-01-26 16:14 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

Partial

New partial

php vendor/kzarshenas/crazyphp/bin/CrazyCommand new partial

Delete partials

php vendor/kzarshenas/crazyphp/bin/CrazyCommand delete partial

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"]

Name Tokken Type Description
CRAZY_ROOT @crazyphp_root <string> Root of crazyphp vendor folder
APP_ROOT @app_root <string> Root of your crazy application
PHPUNIT_TEST @phpunit_test <bool> Determine if we are in a test context
CONFIG_LOCATION @config_location <string> Determine the location of the configs files
ROUTER_APP_PATH @router_app_path <string> Determine the path of the front files of the routers
ROUTER_CONTROLLER_PATH @router_controller_path <string> Determine the path of the back end controller of routers
ROUTER_TYPE_PATH @router_type_path <string> Determine the path of the back end router type
TRASH_PATH @trash_path <string> Determine the path of the trash
TRASH_DISABLE @trash_disable <string> Determine if the trash is disable
PARAMETERS_URL_OVERRIDE @parameters_url_override <object> Override parameters passed by url

Documentation

License

This framework is licensed under the MPL 2.0.

You are free to use, modify, and redistribute it, provided that any modified files are also distributed under the same license.

For a commercial license or professional support, please contact kevin.zashenas@gmail.com.