Download the PHP package femtopixel/nano-framework without Composer

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

[!CAUTION] As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.

[!NOTE] (This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)

Nano Framework

Build Status Latest Stable Version Minimum PHP Version Scrutinizer Code Quality Code Coverage License PayPal donation Buy me a coffee Buy me a coffee

Nano is a simple stupid framework, really easy to handle, and really efficient.

It only implements the C part (Controller) of the MVC design pattern which allows developers to use any other existing library for others parts

Installation

composer require femtopixel/nano-framework

Bootstrap

all your request can be redirected to your bootstrap (assuming index.php)

That's all!

How it works?

With that on, you can now access to your pages like this :

http://mysite.tld/ \/\

And it will load the class \Project\Controller\\::\\Action

You can easily configure your namespace, controller package and action suffix!

\ represents the HTTP method used (usually get but you can use post/update/delete etc...). This is optional.

Either \ or \ are optional and considered as 'index' if not defined.

Therefore

url class::method
http://mysite.tld/ \Project\Controller\Index::indexAction
http://mysite.tld/test \Project\Controller\Test::indexAction
http://mysite.tld/test/action \Project\Controller\Test::actionAction
http://mysite.tld/also/work/with/full/path \Project\Controller\Also\Work\With\Full::pathAction
http://mysite.tld/my/normal \Project\Controller\My::getNormalAction
http://mysite.tld/my/normal (with HTTP post) \Project\Controller\My::postNormalAction

Parameter Matching

Since 0.6.0, you can use "Parameter Matching"

Simply activate it when dispatching :

And then you'll be able to use it like this :

and call http://mysite.tld/myawesomecontroller/hello?name=World&age=900 to display "Hello World, I'm 900yo" !


All versions of nano-framework with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
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 femtopixel/nano-framework contains the following files

Loading the files please wait ....