Codizium Comic Micro framework

Rapha Panchi

0

Web Designer

Project Manager

Database Engineer

Composer (PHP)

GitHub

npm

Overview

Codizium Micro Framework is a lightweight PHP framework designed for secure routing and API development. With an intuitive and straightforward syntax, it facilitates rapid development while adhering to best practices in security and performance. The framework supports the MVC architecture, making it easy to maintain and scale your applications.
Developed by Rapha Panchi.

Features

Secure Routing: Define routes using a clear and concise syntax.
API Development: Create robust APIs with minimal effort.
MVC Support: Separate your code into models, views, and controllers for better organization.
Lightweight: Minimal overhead to ensure fast performance.
Easy to Use: Simplified syntax to get you started quickly.

Getting Started

Prerequisites

PHP 7.4 or higher
Composer

Installation

Start project:
composer create-project codx/codx cd comic
Install dependencies:
composer install
Run:
php ralph serve

Basic Usage

Defining Routes
Define routes in your routes.blade.php file using the framework's syntax:
@get('/') @controller('HomeController@index') @end
Creating Controllers
Controllers should be placed in the app/Controllers directory. Here's an example of a simple controller:
namespace Codx\Comic\Controller; use Codx\Ralph\Engine as View; use \Codx\Comic\Model\User; class HomeController extends Controller{ public function index() { return View::view('welcome'); } public function auth() { echo("logged"); } }
Creating Views
Views should be placed in the views directory. Here's an example of a simple view file welcome.blade.php:
<!DOCTYPE html> <html> <head> <title>Home</title> </head> <body> <h1>Welcome to Comic Micro Framework</h1> </body> </html>

Directory Structure

/comic ├── app │ ├── Controllers │ │ └── HomeController.php │ └── Models | |__ User.php ├── config │ └── app.php ├── public │ └── index.php ├── views │ └── welcome.blade.php ├── routes │ └── router.blade.php ├── composer.json └── README.md

Running the Application

To start the development server, navigate to the public directory and use PHP's built-in server:
php ralph serve
Visit http://localhost:8000 in your browser to see your application in action.

Contributing

We welcome contributions from the community! If you would like to contribute, please follow these steps:
Fork the repository.
Create a new branch (git checkout -b feature-branch).
Make your changes and commit them (git commit -am 'Add new feature').
Push to the branch (git push origin feature-branch).
Create a new Pull Request.
Like this project
0

Posted Dec 19, 2024

Overview Codizium Micro Framework is a lightweight PHP framework designed for secure routing and API development. With an intuitive and straightforward syntax,

Likes

0

Views

0

Tags

Web Designer

Project Manager

Database Engineer

Composer (PHP)

GitHub

npm