承接 glaubinix/silex-no-framework 相关项目开发

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

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

glaubinix/silex-no-framework

最新稳定版本:2.1

Composer 安装命令:

composer require glaubinix/silex-no-framework

包简介

Various improvements for Silex applications

README 文档

README

Build Status

silex-no-framework

This library mostly contains silex ServiceProviders for the QafooLabsNoFrameworkBundle. Only use what you want to use.

Features

All supported features have a sample file in the examples folder and web test cases in the tests folder.

Exception Converter

Maps uncaught exceptions to other exceptions or status codes.

See convert_exception example file.

No additional libraries necessary.

Redirect Route

Return a RedirectRoute from controller methods, only using the route name and parameters. The response will be converted to a RedirectResponse.

See redirect_route example file.

No additional libraries necessary.

Param Converter

Allows inject of TokenContext, FormRequest, Flash and Session via ParamConverter into controller methods.

See param_converter example file.

Install symfony/security for usage of TokenContext with symfony security. Install symfony/form for usage of FormRequest with symfony form.

Return ViewModels, TemplateViews or arrays from controller

Tries to guess the template name base on controller and method name or for the TemplateView uses the template name which is provided. For ViewModels the object will be available as view variable in the template.

See view example file.

Install twig/twig and glaubinix/silex-twig-engine for usage with twig. You can also use another template engine. Simply register a service which implements the Symfony\Component\Templating\EngineInterface.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-08