Download the PHP package nirvana72/phprest without Composer

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

介绍 Introduction

PhpRest 是一款纯restful的轻量框架, 此框架参考自 caoym/phpboot.

swagger

框架特点

环境 Requirements

安装 Installation

composer require nirvana72/phpRest

nginx 配置

server {
    listen 80;
    server_name example.com;
    index index.php;
    root /path/to/public;

    location / {
        try_files $uri /index.php$is_args$args;
    }

    location ~ \.php {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_index index.php;
        fastcgi_pass 127.0.0.1:9000;
    }
}

apache 配置

开启 mod_rewrite 模块,入口目录(/public) 下添加 .htaccess 文件:


Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]


# 文档 Document
文笔不好, 直接看示例代码. 或直接下载示例项目 [phpRest-example](https://github.com/nirvana72/phpRest-example)

[参数绑定](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/ParamsController.php)

[参数绑定实体类](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/EntityController.php)

[中间件hook](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/HookController.php)

[数据库操作](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/DbController.php)

[ORM](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/OrmController.php)

[swagger](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/SwaggerController.php)

[文件上传](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/FileUploadController.php)

[事件驱动](https://github.com/nirvana72/phpRest-example/blob/main/App/Controller/EventController.php)

# 其它 Other
框架默认缓存实现是文件缓存(Filesystem),生产环境推安装 apcu 扩展

All versions of phprest with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
php-di/php-di Version ^6.0
doctrine/annotations Version ^1.11
doctrine/cache Version ~1.10
phpdocumentor/reflection-docblock Version ~5.2.2
mtdowling/jmespath.php Version ~2.6
nikic/fast-route Version ~1.3
vlucas/valitron Version ~1.4
symfony/http-foundation Version ~5.2
catfan/medoo Version ^2.1.3
monolog/monolog Version ^2.2
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 nirvana72/phprest contains the following files

Loading the files please wait ....