RapidPHP is a free, open-source, fast, efficient, and simple object-oriented lightweight PHP development framework.
Version:
4.0.1
rapidPHP follows the Camel-Case naming convention, autoload standard, and adheres to the following rules:
- Directories can be in lowercase or uppercase, but for consistency, it is recommended to use lowercase for all directories and avoid special characters like underscores;
- Class libraries and function files should have a
.phpextension, with the first letter of the class library in uppercase, and the filename should match the class library name; - Class filenames should be defined using namespaces, and the namespace path should match the class library file path;
- Class names and class filenames should be consistent, using CamelCase naming (with the first letter in uppercase);
- Class names should use CamelCase, with the first letter in uppercase, formatted as
NameType, e.g.,BaseController. TheControllersuffix is optional, but it is recommended for consistency; - Function names should use lowercase letters without underscores, e.g.,
getUser; - Variable names should use CamelCase, with the first letter in lowercase, e.g.,
tableName,instance; - Functions or methods starting with a double underscore "__" are considered magic methods, e.g.,
__calland__autoload;
- Constants should be in uppercase with underscores;
- Configuration parameters can be static methods, constants, or members;
RapidPHP requires PHP 7.2+ to run.
composer create-project mayi/rapid-php
- Import the database;
rapid-php.sql
- Modify the MySQL connection configuration and Redis connection configuration;
/apps/core/application.yaml
- Access the API interface;
$host/apps/app/index.php
- Access the admin panel;
$host/apps/admin/index.php
- Start the message queue;
php /apps/queue/index.php start
- View the message queue commands;
php /apps/queue/index.php
Submit a PR or Issue directly.
rapidPHP is released under the MIT open-source license and is free to use.
The copyright information for third-party source code and binary files included in this project is indicated separately.
Copyright © 2020-2024 by rapidPHP
All rights reserved.