Download the PHP package nddcoder/rest without Composer

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

rest-framework

Rest Framework - PHP Framework for ReactPHP Library

Docs

Installation

Server Requirements

The Rest framework has a few system requirements.

Installing Rest

Rest utilizes Composer to manage its dependencies. So, before using Rest, make sure you have Composer installed on your machine.

Install Rest by issuing the Composer create-project command in your terminal:

composer create-project --prefer-dist nddcoder/rest blog

Local Development Server

Just run index.php file

Or, if you have nodemon installed, you can have auto reload feature by using nodemon

Deploy

Using Docker

Just build image based on project's Dockerfile

Using Supervisor

Usage

Router

Rest using Fast Route for routing. Application routes can be register in app/Router.php.

Controller

The first parameter of controller method always is ServerRequestInterface, any route params will following this.

Dependency Injection

Bind class to container

Singleton

To make a class is singleton, you can make class implemnt Singleton interface or bind to container using singleton method

Resolve an instance from container

Inject dependencies in __construct function

Using app helper

Inject dependencies in __construct function

Helpers

app: return Application instance or resolve an instance from container

view: return ViewResponse instance. Accept view name and optional data need pass to view

response: return Response instance, use to build response

env: get enviroment vairable from $_ENV. Rest using vlucas/phpdotenv for load env variables from .env file.

dd: var_dump and die variable for debugging.

abort: intermediately return http response. Accept status code and message

abort_if: abort based on $condition

abort_unless: reversed side of abort_if

logger: log a string or an Throwable instance to console


All versions of rest with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
nddcoder/rest-framework Version ^1.3.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 nddcoder/rest contains the following files

Loading the files please wait ....