mathcale/silex-base-project 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mathcale/silex-base-project

Composer 安装命令:

composer require mathcale/silex-base-project

包简介

A simple Silex base project with routing, twig templates, database connection and some other cool stuff

README 文档

README

Packagist

A simple Silex 2.x base project with authentication, routing, twig templates, env. variables and some other cool stuff.

Requirements

  • PHP >= 5.5.9
  • Composer
  • Apache Web Server

NOTE: If you're using another webserver, take a look at the official documentation on how to properly set it up.

Running the app

  1. Clone the repo or get it from Packagist by running composer create-project --prefer-dist mathcale/silex-base-project on your websever root (e.g. /var/www/html ou C:/wamp/www)
  2. cd silex-base-project
  3. Edit the .env file with necessary info (database credentials, debug mode...)
  4. Start your web server and go to the project's url (e.g. http://localhost/silex-base-project)
  5. Have fun using Silex!

Creating the database

Now you can create a database schema by running the make:db command. To accomplish that, cd to the project's root and run php bin/console make:db --name DB_NAME, where DB_NAME == the name you want for your database.

If you already have a database, don't forget to change the SQL queries at src/Controllers/AuthController.php to match your schema.

ProTips(tm)

  • If you want to use npm packages, make sure to update your .gitignore with the node_modules folder
  • If you have cloned the repo, run composer install to download the project dependencies and then create the .env file by running php -r "file_exists('.env') || copy('.env.example', '.env');"
  • If you used bin/console to create your database, the default login credentials are 'admin' and '123456' (encrypted using $app['security.encoder.digest']->encodePassword())

Contributing

Open Source projects are made for the community and by the community. It would be nice to have more people interacting and helping to improve this codebase. So, feel free to open (actual) issues and send pull requests if you fixed/implemented something.

License

MIT License

Copyright (c) 2017 Matheus Calegaro

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固