Download the PHP package gabela/micro-framework without Composer

On this page you can find all versions of the php package gabela/micro-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package micro-framework

gabela logo

Gabela Framework

Gabela is a lightweight PHP framework designed to simplify web application development. It follows the MVC (Model-View-Controller) architecture and provides essential tools for building scalable and maintainable applications. This framework is crafted to minimize development complexity and offers developers the freedom to choose their preferred templating language, styling framework (e.g., Bootstrap), and jQuery libraries.

Overview

Gabela aims to strike a balance between simplicity and flexibility. Here are some key features and principles:

Table of Contents

  1. Installation
  2. Getting Started
  3. Configuration
  4. Routing
  5. Controllers
  6. Models
  7. Views
  8. Helpers
  9. Middleware
  10. Modules
  11. Error Handling

Installation

  1. Clone the Gabela repository: https://github.com/your-username/gabela.git

  2. Install dependencies using Composer:

  3. Configure your web server to point to the root directory if using apache make sure you change the Base in the .htaccess as required.

Getting Started

Gabela follows a simple and intuitive structure. The entry point is the index.php and also bootstrap.php file inside the gabela directory.

Configuration

Configuration settings are stored in the config directory. Update the gabela/config/config.php file to set environment-specific configurations.

Routing

Define routes in the router.php file. Use the Gabela\Core\Router class to map URLs to controller actions.

The routing for this framework is quit unique and complex yet easy to implement, the drive for the complex routing is the make sure that we cater for the security of your application by implementing the middleware.

Controllers

Models

Models represent the data and business logic of your application. Create models in the models directory.

Views

Views are stored in the views directory. Use plain HTML or a templating engine for your views.

Helpers

Helpers are utility functions that can be used throughout your application. Customize the helpers directory for additional functionality.

Middleware

Middleware provides a convenient mechanism for filtering HTTP requests entering your application. Customize the middleware directory to add middleware.

Modules

Organize your application into modules for better structure and maintainability. Use the vendor directory for third-party modules. The 1st module created for the framework as a beta is gabela-users which you will get with the framework on the installation. you can also install it using composer.

You can find the module in the vendor/gabela/gabela-users

Error Handling

Handle errors gracefully using the error handler defined in the ErrorHandler class.

This documentation provides a basic overview of the Gabela framework. Refer to the source code and comments for more detailed information on each component.

For advanced features and customization options, consult the official documentation or the developer community.

Creating Your First Hello World Page in Gabela Framework

Step 1: Craft a Controller

Begin by crafting a controller class within the gabela/controllers directory. Here's a snippet to create the HelloWorldController:

Step 2: Configure Your Router

In the router.php file, configure the routing for your new page:

Step 3: Add Namespace and Path

In the gabela/config/GabelaPathsConfig.php file, integrate the namespace and path for your controller:

Now you're all set! Navigate to your page at http://site.local/hello-world and witness your "Hello World" message in action.

Happy coding with Gabela Framework! 🚀


All versions of micro-framework with dependencies

PHP Build Version
Package Version
Requires monolog/monolog Version ^3.5
aternus/geonames-client Version ^2.3
phpmailer/phpmailer Version ^6.9
gabela/gabela-users Version ^1.0
gabela/tasks Version ^1.2
gabela/gabela-payfast Version ^1.0
payfast/payfast-php-sdk Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gabela/micro-framework contains the following files

Loading the files please wait ....