Download the PHP package singcl/php_mvc without Composer

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

travis Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

  1. unable to bind listening socket for address '/run/php/php7.1-fpm.sock' no such file or directory

原因:php-fpm 没有启动,如下启动:

  1. 查看Ubuntu Apache2 服务器日志

  2. remote-ssh

  3. 启动Apache2后打开php 网站报错

有可能是php-fpm没有启动

  1. MYSQL

一直报错

最终问题定位: 在/etc/profile 之前添加了如下语句

删除上面自己添加的即可启动

  1. WSL 暂不支持 netstat ss 等命令

  2. 数据库操作相关问题

启动

  1. PDO 相关问题

代码中使用PDO 时候返回 PDOException: can not find driver。 然后我们查看phpinfo() 确认下: PDO 显示:drivers no value

说明PDO 链接MYSQL 驱动找不到。

网上搜索这个问题,答案都是挺多的, 赞成数最多的方案:

然后不幸的是还是失败了!!

我观察/etc/php/7.3中的目录 发现有个fpm。 fpm 和 cli 目录下都有php.ini 文件?

我的PHP 使用的是 apache2 fast-cgi php-fpm 方式启动的,那么配置完三个步骤我只是重启了apache, php-fpm 是不是也要重启?

OK!! 成功了。

  1. Mysql 链接不上

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

@see https://stackoverflow.com/questions/39281594/error-1698-28000-access-denied-for-user-rootlocalhost

  1. php -r 'phpinfo();' | grep 'mysql'

调试

xdebug 安装文档 https://xdebug.org/docs/install#compile

vscode xdebug 文档 https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug

pecl安装php扩展

Pecl全称The PHP Extension Community Library,php社区扩展库,由社区编写,维护。

使用pecl方便之处在于我们不用到处找源码包下载编译,配置,不用手动phpize,configure,make,make install,自动识别模块安装路径,

我们只需要编辑php.ini配置文件开启扩展,当然我们也需要自己配置一些参数的时候可以先下载源码再构建

https://www.cnblogs.com/hk-faith/p/8777289.html

Composer

  1. php composer.phar update 时候warning: Failed to download phpunit/phpunit-mock-objects from dist: The zip extension and unzip command are both missing, skipping.

解决:没有安装zip导致的。 sudo apt-get install zip

Page 相关页面

Apache2 php7.3 php7.3-fpm

  1. 初始化配置

  2. 安装主要package

  3. 配置apache2(关键步骤)

  4. 启动

MYSQL

@Refer: https://www.awaimai.com/128.html#51

MAC 使用系统自带的Apache和PHP-FPM 开启Apache+PHP-FPM服务

  1. copy一份配置文件

  2. 打开配置文件编辑

解开相关依赖模块注释,如图

  1. 配置web服务器目录

  1. 解开虚拟主机路径

  2. 配置vhost

如图:

好了,现在配置已经完成。在/data/www下建一个文件:

` OK, 访问localhost:

大功告成!

错误

  1. php SQLSTATE[HY000] [2002] No such file or directory

解决:将数据库配置里面'localhost'改为127.0.0.1即可。

  1. 要想使.htaccess 重写规则生效的话:

All versions of php_mvc with dependencies

PHP Build Version
Package Version
Requires php Version 7.3
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 singcl/php_mvc contains the following files

Loading the files please wait ....