承接 idci/partner-bundle 相关项目开发

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

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

idci/partner-bundle

Composer 安装命令:

composer require idci/partner-bundle

包简介

Symfony PartnerBundle

README 文档

README

A Partner Bundle for Symfony2

Content

This bundle was developped for a specific project, but is made to suit with more. It allows to add Partners management in a project. You have also an API usable for web-service. With a partner comes locations, offers from partners, a partner category and social links. Feel free to contribute, fork this bundle and add what you need.

Installation

To install this bundle please follow the next steps:

First add the dependencies to your composer.json file:

"require": {
    ...
    "pagerfanta/pagerfanta": "dev-master",
    "white-october/pagerfanta-bundle": "dev-master",
    "idci/partner-bundle": "dev-master"
},

And install the bundle with the command:

php composer.phar update

Enable the bundle in your application kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
        new IDCI\Bundle\PartnerBundle\IDCIPartnerBundle(),
    );
}

In your routing.yml file, add the following:

idci_partner:
    resource: "../../vendor/idci/partner-bundle/IDCI/Bundle/PartnerBundle/Controller"
    type:     annotation
    prefix:   /admin

As you can see, we use WhiteOctoberPagerFantaBundle to paginate list results. So you have to define the max_per_page parameter in your app/config/parameters.yml

parameters:
    ...
    max_per_page:  25

Now, you have to install bootstrap:

If it isn't done yet, configure your database.

Edit your parameters.yml file. Here is an exemple which might help you:

parameters:
    database_driver:   pdo_mysql
    database_host:     localhost
    database_port:     ~
    database_name:     sf_partner
    database_user:     root
    database_password: MyPassword

    mailer_transport:  smtp
    mailer_host:       localhost
    mailer_user:       ~
    mailer_password:   ~

    locale:            en
    secret:            ThisTokenIsNotSoSecretChangeIt

Run theses commands in your workspace directory:

php app/console doctrine:database:create
php app/console doctrine:schema:create

Else, just run the following:

php app/console doctrine:schema:update

Now the Bundle is installed and ready to use. You will find new routes by running this command:

php app/console router debug

...
admin_partner                 ANY    ANY  /admin/partner/
admin_partner_category        ANY    ANY  /admin/partner/category/
admin_partner_category_show   ANY    ANY  /admin/partner/category/{id}/show
admin_partner_category_new    ANY    ANY  /admin/partner/category/new
admin_partner_category_create POST   ANY  /admin/partner/category/create
admin_partner_category_edit   ANY    ANY  /admin/partner/category/{id}/edit
admin_partner_category_update POST   ANY  /admin/partner/category/{id}/update
admin_partner_category_delete POST   ANY  /admin/partner/category/{id}/delete
admin_partner_partner         ANY    ANY  /admin/partner/partner/
admin_partner_partner_show    ANY    ANY  /admin/partner/partner/{id}/show
admin_partner_partner_new     ANY    ANY  /admin/partner/partner/new
admin_partner_partner_create  POST   ANY  /admin/partner/partner/create
admin_partner_partner_edit    ANY    ANY  /admin/partner/partner/{id}/edit
admin_partner_partner_update  POST   ANY  /admin/partner/partner/{id}/update
admin_partner_partner_delete  POST   ANY  /admin/partner/partner/{id}/delete

idci/partner-bundle 适用场景与选型建议

idci/partner-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 60 次下载、GitHub Stars 达 2, 最近一次更新时间为 2013 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 idci/partner-bundle 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2013-01-04