psfs/core

PHP 简单、快速、安全

2.0.1 2023-12-11 23:14 UTC

README

Build Status Latest Stable Version Total Downloads Scrutinizer Code Quality Code Coverage

框架 PHP 简单、快速、安全

要求

  • php 8.0+
  • ext-gettext
  • ext-json
  • ext-curl
  • ext-gmp
  • ext-fileinfo

PSFS 安装的组件

"propel/propel": "2.0.x-dev",
"symfony/console": "v6.x",
"symfony/finder": "v6.x",
"symfony/translation": "v6.x",
"twig/twig": "3.8.0",
"monolog/monolog": "3.x",
"matthiasmullie/minify": "1.3.71"

如何使用 composer 安装

通过以下方式安装 composer: GetComposer

composer require psfs/core
./vendor/bin/psfs psfs:create:root
php -S 0.0.0.0:8080 -t ./html

如何与 Docker 一起使用

docker-compose up .

你可以使用一些环境变量来管理 docker 容器

- APP_ENVIRONMENT: (local|dev|...|prod) Define the staging for the run environment
- HOST_PORT: 8001 Define the port where you could expose the server
- DEBUG: -xdebug Loads a docker image with xdebug installed and configured, if empty it loads a default php image

路线图

* Framework documentation
    - PhpDoc for all files
* Testing
    - 100% tests coverage