承接 sylvaincombes/firecamp-php 相关项目开发

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

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

sylvaincombes/firecamp-php

最新稳定版本:0.0.1

Composer 安装命令:

composer require sylvaincombes/firecamp-php

包简介

Utils for silex based projects

README 文档

README

Small and simple php classes for php project based on silex, to make easier the start of a project.

DISCLAIMER : at this moment these classes are just a test, consider this project as a pre-alpha, don't use it on production.

What's inside ?

Providers

Two providers are available :

Firecamp\Provider\ControllerServiceProvider

This class register classes in the share of the silex application

Firecamp\Provider\RepositoryServiceProvider

This class register repositories class in the share of the silex application, it injects the $app['db'] to each class.

Utils

The Firecamp\Utils class has two static methods :

Firecamp\Utils::loadConf($configFile);

This method load a php file and merge the configuration entries in the app.

Firecamp\Utils::appShareClassHelper(...);

This method help to share a class in silex. With this you can easily for example declare your custom controller in a particular place and use them easily.

Base classes

Firecamp\Controller\Controller

Base class to extend with some predefined helpers

Firecamp\Repository\AbstractRepository

Base class to extend with some predefined helpers

Contributing

You can test that your code looks ok by launching the command

vendor/bin/coke

From the root of the project, it will scan the code in src directory with phpcs and symfony 2 coding standard settings

TODO

  • Write some tests
  • Write more documentation
  • Add travis ci

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-05