Download the PHP package showx/phpshow without Composer

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

phpshow

phpshow,轻量简单易用的高性能php框架,默认启动workerman模式,抗大并发能力。

服务器环境

  1. Nginx
  2. php7以上

相关扩展

  1. pcntl
  2. libevent
  3. seaslog(选用)
  4. swoole(选用)

安装

统一使用phpcomposer安装 composer require showx/phpshow

协议

phpshow 的开源协议为 Apache-2.0,详情参见LICENSE

php配置

项目config/site.php配置

详见参考事例

php.ini

建议短标记

  1. short_open_tag = On ;php短标记打开 <? ?>,模板要使用这样的标记

nginx配置

nginx正常模式

高性能workerman模式

框架教程

composer之后 ./vender/showx/phpshow/app 项目示例 ./vender/showx/phpshow/src 核心代码文件

简单的mvc模式 主要逻辑在于/app文件夹中 入口在/public文件夹(详情查询./vender/showx/phpshow/app)

路由

路由采用简单的定义方式 $url/{$ct}/{$ac},http://www.baidu.com/index/index,默认ct和ac为index. 支持path_info /index.php/index/index

配置文件

配置文件主要饮食site(基础配置)database(数据库配置)route_rule(路由规则配置) 放在app项目下的config文件夹

app项目

新建composer.json文件

增加本地项目的autoload composer require showx/phpshow 在app里使用php index.php start启动服务器

核心类的介绍

  1. \phpshow\request 获取数据类
  2. \phpshow\response 输出类
  3. \phpshow\loader 核心加载类
  4. \phpshow\control 基层控制器
  5. \phpshow\model 基层模型

工具库

  1. \phpshow\lib\redis redis类
  2. \phpshow\lib\http http请求类
  3. \phpshow\lib\mysql 数据库驱动
  4. \phpshow\lib\debug 页面调试
  5. \phpshow\lib\jwt jwt会话验证
  6. \phpshow\lib\log 日志类
  7. \phpshow\lib\pool 进程池
  8. \phpshow\helper\util 辅助函数库

模型层

继承\phpshow\model即可调用相关函数

  1. insert1 新增数据
  2. update1 更新数据
  3. get_one 获取一条数据
  4. get_all 获取所有数据
  5. get_sql_one 获取指定sql的一条数据
  6. get_sql_all 获取指定sql的全部数据

模板引擎

使用纯php输出,模板里简单用<? ?> 作为标签 vue带领大家,前后端分离,没需要用到模拟引擎

简单缓存

使用

  • 设置缓存 \phpshow\loader::set($key,$value);
  • 获取缓存 \phpshow\loader::get($key);
  • 建议与反馈

    联系本人 9448923#qq.com


    All versions of phpshow with dependencies

    PHP Build Version
    Package Version
    Requires php Version >=7.0.0
    nesbot/carbon Version ^2.29
    workerman/workerman Version ^4.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 showx/phpshow contains the following files

    Loading the files please wait ....