chrismou/phpdocs-to-db 问题修复 & 功能扩展

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

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

chrismou/phpdocs-to-db

Composer 安装命令:

composer require chrismou/phpdocs-to-db

包简介

App for creating an sqlite PHP function database using the PHP documentation SVN repository

README 文档

README

A work-in-progress app for creating an sqlite PHP function database using a checkout of the PHP documentation SVN repository.

This is a really early doors version - written in a rush for use in a seperate project - which I've decided to open source because - well, why not? :-)

There's a lot more work to do, so if you come across any issues/limitations then there's a good chance I already know about it and plan to fix/improve it in a later release.

Also, expect the DB layout to change - adding multiple language support will almost definitely require this. There's also a few hacky workarounds in the code that I had to add in a hurry to get the DB generated quickly - expect them to be fixed in a later version.

Install

The recommended method of installation is through composer.

{
    "require": {
        "chrismou/phpdocs-to-db": "dev-master"
    }
}

Next you need to grab a copy of the PHP docs from their SVN repository. As I've not added full language support yet, you need to choose what language you want to use now.

For this example, you'll need subversion installed. To set yourself up to create an English language PHP doc DB, get into the project root and run the following command:

svn checkout http://svn.php.net/repository/phpdoc/en/trunk/ data/

Expect this to take a while, as you're grabbing 150+ MB of XML files. You can switch it to use other languages by switching "en" in the URL (open [http://svn.php.net/repository/phpdoc] in a browser to see the full list of supported languages).

Then take the phpdoc_skeleton.db file in the build/ directory and create a copy in the same directory, calling it phpdoc.db (DB creation will be automated in a future release).

Now open a terminal, get into the project root and run the following command:

php run.php phpdocdb:create

##s Future

  • Automatic DB creation (currently requires the included sqlite skeleton db)
  • Support for auto checkout/update using the PHP SVN module
  • Support for language selection (or creation of a multi-language DB)
  • Support for multiple DB providers
  • Option to select whether to create a multi-table relational DB or a single-table DB (ie, for if filesize is an issue) ** Including being able to specify whether to include full variable definitions, etc

License

Released under the MIT License. See LICENSEs

chrismou/phpdocs-to-db 适用场景与选型建议

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

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

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

围绕 chrismou/phpdocs-to-db 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-01-04