Download the PHP package nabeelalihashmi/nthphp without Composer

On this page you can find all versions of the php package nabeelalihashmi/nthphp. 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 nthphp

NthPHP Framework

NthPHP is a fast, optimized PHP framework designed to speed up and simplify web development using automatic routing and providing great developer experience. Not only it can run in a traditional PHP environment with Apache, Nginx, LiteSpeed, or any other similar web server, but also it provides high performance, leveraging Swoole for asynchronous, coroutine-based processing, allowing your application to handle thousands of requests concurrently without requiring any changes in code.

Installation

Download this repo or clone this repo or run following command:

Screenshots

Built around a clean and minimal architecture, NthPHP uses PHP attributes for routing, automatic routing for Blade views, a flexible Blade templating engine for views, and a powerful ORM (RedBeanPHP) for database access. With built-in support for middleware and an easy-to-use configuration system, it simplifies common tasks like request handling, email sending, and validation.

Key Features

Configuration

The configuration is stored in app/config.php and includes settings for routing, controllers, views, server config etc. NthPHP provides a class Config to read the config with dot notation, with Config::get method to read the configuration.

Automatic Views Directory

The framework uses Blade templating with the default directory for views located at /app/Views.

In routing, if automatic_routes have value other than false, e.g,

then blade view files in /app/Views/_pages and _other_dir_in_views, are considered as routes.

Manual Routes

It is possible to define own routes in app/Routes directory. A php file here, must return an array of route arrays. A route array has following keys:

-method
-path
-handler
-middleware

Check demo files for example.

If file name is root.php, then routes of that and mounted with group. For other name, such as demos.php, any route define in it will automatically prepend demos in routes.

Documentation

Installation

  1. Clone the repository or download the framework.
  2. Run composer install to install the required dependencies.
  3. Configure your database and other settings as needed.
  4. Start developing your application by creating controllers and views.

Usage

  1. Define routes in your controllers using PHP attributes.

  2. Views in app/views/_pages are automatically rendered based on routes, with Blade templating.

  3. Database interactions can be handled using RedBeanPHP, with or without models.

  4. The framework can run on Swoole, Apache, Nginx, LiteSpeed, or any other similar server environment without any changes to your code.

Caching

Please note that when routes are changed, and caching is set to true in the config, please delete cache/routes/collector.cache and cache/routes/routes.cache files.

Developer

This framework is developed by Nabeel Ali. You can connect with the developer on LinkedIn:


This is just the beginning. NthPHP is a work in progress and continuously evolving.


All versions of nthphp with dependencies

PHP Build Version
Package Version
Requires nikic/fast-route Version ^1.3
eftec/bladeone Version ^4.16
gabordemooij/redbean Version dev-master
php Version ^8.1
rakit/validation Version ^1.4
phpmailer/phpmailer Version ^6.9
hashids/hashids Version ^5.0
tracy/tracy Version ^2.10
delight-im/auth Version ^8.3
erusev/parsedown Version ^1.7
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 nabeelalihashmi/nthphp contains the following files

Loading the files please wait ....