Download the PHP package naqla-sehia/naqla-framework without Composer

On this page you can find all versions of the php package naqla-sehia/naqla-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 naqla-framework

Naqla Sehia PHP Micro Framework

A lightweight, modern PHP micro-framework designed for building web applications with clean architecture and minimal overhead.

Features

Installation

Install via Composer:

Quick Start

Project Structure

Your project should follow this structure:

Setup .env

Create a .env file in your project root:

Create Entry Point (public/index.php)

Define Routes (routes/web.php)

Create a Controller

Core Components

Request

Handle incoming HTTP requests:

Response

Control outgoing HTTP responses:

Database

Work with MySQL and SQLite:

Validation

Validate input data:

Available Rules:

View

Render views with template inheritance:

Layout (views/layouts/main.php):

View (views/dashboard.php):

Session

Manage user sessions:

Configuration

Access configuration values:

Helper Functions

Convenient global functions:

Built-in Support Classes

Arr (Array Helper)

Str (String Helper)

Hash (Security Helper)

Error Handling

The framework automatically handles errors:

Database Configuration

MySQL (config/database.php)

SQLite (config/database.php)

Extending the Framework

Create Custom Validation Rules

Then register in RulesMapper:

Best Practices

  1. Use Type Hints - Always type hint properties and parameters
  2. Validate Input - Always validate user input before processing
  3. Use Prepared Statements - The framework uses PDO prepared statements
  4. Environment Configuration - Keep sensitive data in .env files
  5. Separate Concerns - Keep controllers thin, logic in services
  6. Use Helper Functions - They provide a clean, fluent API
  7. Handle Errors Gracefully - Return appropriate HTTP status codes
  8. Use Sessions - Store user state securely in sessions

Requirements

Dependencies

License

MIT License - Free to use in commercial and private projects.

Support

For issues, questions, or contributions, please visit the project repository.

Developed By

Fares Khalid - Software Engineer


Inspired by: SecTheater YouTube Channel Tutorial

Get started building amazing web applications with Naqla Sehia Framework today!


All versions of naqla-framework with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
phpmailer/phpmailer Version ^6.5
symfony/var-dumper Version ^5.2
vlucas/phpdotenv Version ^5.3
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 naqla-sehia/naqla-framework contains the following files

Loading the files please wait ...