承接 seriti/slim3-skeleton 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seriti/slim3-skeleton

Composer 安装命令:

composer require seriti/slim3-skeleton

包简介

A private MySQL administrative application framework using Seriti Tools library and Slim 3 Framework

README 文档

README

Use this skeleton application to quickly setup and start working on a new Seriti Slim 3 MySQL Framework Application. This application uses Slim-3 micro framework with the default PHP-View template renderer.
**NB: framework uses mysqli components and is therefore mysql/maria database compatible only **

This skeleton application was built for Composer. This makes setting up a new Seriti Slim 3 Framework Application quick and easy.

After you have successfully installed the skeleton, there are several modules which can be easily added:

Install the Application

Run this command from the directory in which you want to install your new Seriti Slim 3 Framework Application.

Option 1: If you have composer installed already and it is in default path.
composer create-project seriti/slim3-skeleton [directory-for-app]

Option 2: Install composer in desired directory and then use following syntax.
php composer.phar create-project seriti/slim3-skeleton [directory-for-app]

Replace [directory-for-app] with the desired directory name for your new application. You'll want to:

  • Point your virtual host document root to your new application's public_html/ directory.
  • Ensure logs/ is web writeable.
  • Ensure storage/docs is web writeable.
  • Ensure storage/temp is web writeable.
  • Ensure public_html/files is web writeable.

FOR WEB SERVERS WHERE YOU HAVE FULL CONTROL, LIKE YOUR DEVELOPMENT SERVER

  • Configure "[directory-for-app]/public_html" as web root
  • OR run "php -S localhost:8000 -t public_html" from [directory-for-app] folder to use PHP built in web server
  • OR use "composer start" or "php composer.phar start" from [directory-for-app] folder to run PHP built in web server as configured in composer.json

FOR SHARED HOSTING ENVIRONMENT where service provider has a predefined "public_html" folder which you cannot change

  • Copy all code in "skeleton/public_html" to host "public_html" folder.
  • Check in "public_html/index.php" that constant BASE_DIR is absolute path to [directory-for-app] folder,
  • Check in "public_html/index.php" that constant BASE_DIR_PUBLIC is absolute path to "public_html" webroot NB: Some service providers can have public_html folder as a symbolic link to another location so make sure that these paths are valid

Define framework parameters

Review contents of [directory-for-app]/env-example.php and set MySQL database connection parameters as a minimum requirement.
NB1: MAKE SURE THAT SYSTEM TABLES SPECIFIED DO NOT CLASH WITH ANY OF YOUR EXISTING TABLES IN DATABASE NB2: Unless you have setup default tables already make sure define('SETUP_APP',false);

Rename this file to [directory-for-app]/env.php once you have modified it.

Check that webserver is working

Now goto URL:
"http://localhost:8000/" if you are using php built in server
OR
"http://www.yourdomain.com/" if you have configured a domain on your server

If you have installed this skeleton before on same machine, then you may receive a MySQL database error as the framework tries to access non-existent tables. If this happens then assume the webserver is ok and just access "/setup" as detailed below.

Setup database tables

You should see a setup link in welcome page in above step, alternatively you can goto URL:
"http://localhost:8000/setup" if you are using php built in server
OR
"http://www.yourdomain.com/setup" if you have configured a domain on your server

If all goes well you should see a message detailing success in creating necessary database tables.
NB: AFTER SUCCESSFUL SETUP, make define('SETUP_APP',true); in [directory-for-app]/env.php,
and comment out /setup route in directory-for-app]/src/routes.php

Finally login to admin interface:

Now goto URL:
"http://localhost:8000/login" if you are using php built in server
OR
"http://www.yourdomain.com/login" if you have configured a domain on your server

Default login credentials are:

  • User: Whatever email address you defined "MAIL_WEBMASTER" as in env.php above
  • pwd: SUNFLOWER

NB: Once you have successfully logged in remember to change password or delete the default user created at setup before using in a production environment

seriti/slim3-skeleton 适用场景与选型建议

seriti/slim3-skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 67 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 07 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「microframework」 「admin」 「rest」 「private」 「slim」 「seriti」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 seriti/slim3-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 seriti/slim3-skeleton 我们能提供哪些服务?
定制开发 / 二次开发

基于 seriti/slim3-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 67
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-15