reativ/verb

Reativ PHP framework focused on HTTP concepts

dev-main 2023-09-17 21:55 UTC

This package is not auto-updated.

Last update: 2024-11-01 16:18:19 UTC


README

Verb is a high-performance PHP framework designed to accelerate web development and empower developers with a robust set of tools and features.

Features

Efficient Routing

Verb provides a powerful routing system that allows you to easily define clean and flexible routes for your web application.

Optimized Performance

With its lightweight design and optimized code execution, Verb ensures fast response times and optimal resource utilization.

Flexible Database Integration (SOON)

The framework seamlessly integrates with popular databases, offering efficient query builders and ORM capabilities for database interactions.

Effortless Templating (SOON)

Verb includes a flexible templating engine that simplifies the separation of logic and presentation, enabling clean and maintainable code.

Secure Authentication (SOON)

Built-in authentication features such as user management, login, and password reset make it easy to implement secure user authentication in your application.

Error Handling and Logging

Verb provides comprehensive error handling and logging mechanisms to help you identify and resolve issues quickly.

Extensible Architecture

The framework follows a modular architecture that allows for easy extension and customization, ensuring scalability as your application grows.

Getting Started

To get started with Verb, follow these steps:

Requirements

Ensure that you have PHP (version 8.1 or higher) and a web server installed on your system.

Installation

Install Verb dependency using composer

composer create-project verb/verb

Configuration

To configure Verb, just create an index.php file and add the following code:

use Reativ\Verb\Application;

$app = Application::getInstance();

// Register routes
$app->get('/', function () {
    return 'Hello, World!';
});

// Run the application
$app->run();

Using Verb

To use Verb, just call run() method in the app instance. For example:

$app->run();

This will start the application and listen on port 8080. Then you can access your application in the browser using the following URL:

http://localhost:8080

You can create a script in composer.json file to start PHP development server adding the following code:

"scripts": {
    "dev": [
        "Composer\\Config::disableProcessTimeout",
        "@php -S localhost:8000 -t public/"
    ]
}

After that just run the command:

composer run dev

For detailed documentation, please refer to the Verb Wiki.

Contributing

Contributions to Verb are welcome! If you encounter any bugs or have suggestions for new features, please open an issue or submit a pull request. Before contributing, please review our Contribution Guidelines.

License

Verb is released under the MIT License. Feel free to use and modify the framework according to your needs.