Skip to content

mayi0815/rapid-php

Repository files navigation

RapidPHP

RapidPHP is a free, open-source, fast, efficient, and simple object-oriented lightweight PHP development framework.

Version: 4.0.1

Naming Convention

rapidPHP follows the Camel-Case naming convention, autoload standard, and adheres to the following rules:

Directories and Files

  • 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 .php extension, 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);

Functions, Classes, and Attribute Naming

  • Class names should use CamelCase, with the first letter in uppercase, formatted as NameType, e.g., BaseController. The Controller suffix 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., __call and __autoload;

Constants and Configuration

  • Constants should be in uppercase with underscores;
  • Configuration parameters can be static methods, constants, or members;

RapidPHP requires PHP 7.2+ to run.

Installation

composer create-project mayi/rapid-php

Running the Test Project

  • 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

Contributing

Submit a PR or Issue directly.

Copyright Information

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.

About

rapid php frm application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages