willgarcia/silex-api-boilerplate 问题修复 & 功能扩展

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

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

willgarcia/silex-api-boilerplate

Composer 安装命令:

composer require willgarcia/silex-api-boilerplate

包简介

Silex application for getting started with your API.

README 文档

README

Build Status Dependency Status

silex-api-boilerplate

A starting point for building your RESTful API within a Silex application.

Prerequisites

  • PHP >=5.4
  • Grunt-cli >= 0.1.6

Components

This project uses the following components:

API

The provided API stands as an example, and supports the HAL format.

API Endpoints (see app/routing.php) :

/api                                # API entry point               ; secured route
/api/errors                         # API errors list               ; secured route
/api/errors/{code}                  # API error description         ; secured route
/api/customers                      # Customers list                ; secured route
/api/customers/{cid}                # Customer informations         ; secured route
/api/customers/{cid}/licenses       # Customer's licenses list      ; secured route
/api/customers/{cid}/licenses/{lid} # Customer license informations ; secured route

Installation

$ composer create-project willgarcia/silex-api-boilerplate my-new-api -s dev
$ npm install
$ grunt

Development

For development purposes only, you can serve the API by starting a PHP built-in web server:

$ cp app/env_dev.php-dist app/env_dev.php
$ API_ENV=dev php -S 0.0.0.0:4000 web/index.php

See http://php.net/manual/en/features.commandline.webserver.php

From here, you can access to this URL: http://localhost:4000

Tests

$ bin/behat tests/functional/features/

License

Silex-api-boilerplate is released under the MIT License. See the bundled LICENSE file for details.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固