承接 nochso/sami-theme 相关项目开发

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

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

nochso/sami-theme

Composer 安装命令:

composer require nochso/sami-theme

包简介

A Sami theme with inline source code

README 文档

README

Latest Stable Version License

This is a theme for the Sami API documentation generator with some added features:

  • The complete file source is included at the end.
  • Source code highlighting with prismjs.
  • Show the value / assignment of class constants.
  • HTML is minified using wyrihaximus/html-compress.

An an example take a look at the API docs for the nochso/Benchmark library.

Installation

If you haven't used Sami before, please read up on its installation and basic usage first.

When you're ready, require the theme in your project:

$ composer require nochso/sami-theme

Usage

In your Sami configuration file simply call Theme::prepare to inject the theme into your Sami instance right before returning it:

return \nochso\SamiTheme\Theme::prepare($sami);

e.g.

<?php

use Sami\Sami;
use Symfony\Component\Finder\Finder;

$finder = Finder::create()
    ->files()
    ->name('*.php')
    ->in(__DIR__.'/src');

$config = array(
    'title' => 'Project documentation title',
    'build_dir' => __DIR__.'/build',
    'cache_dir' => __DIR__.'/cache',
);

$sami = new Sami($finder, $config);
$sami = \nochso\SamiTheme\Theme::prepare($sami);
return $sami;

This looks for PHP files in src/ and saves the resulting documentation in build/.

These results are now ready for you to upload and share!

History

0.2.0 - 2016-04-17

Changed

  • Bump nochso/html-compress-twig to 1.0.0

0.1.1 - 2015-10-05

Changed

0.1.0 - 2015-09-26

First public release.

Contributing

  1. Open an issue if it's worth discussing.
  2. Fork this project on Github.
  3. Clone your fork: git clone git@github.com:yourname/sami-theme.git
  4. Don't forget to composer update
  5. Create your feature branch: git checkout -b my-new-feature
  6. Commit your changes: git commit -am 'Add some feature'
  7. Push to the branch: git push origin my-new-feature
  8. Submit a pull request on Github :)

Credits

License

This project is licensed under the ISC license which is MIT/GPL compatible and FSF/OSI approved:

Copyright (c) 2015, Marcel Voigt <mv@noch.so>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

nochso/sami-theme 适用场景与选型建议

nochso/sami-theme 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 162 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 09 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 nochso/sami-theme 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: HTML

其他信息

  • 授权协议: ISC
  • 更新时间: 2015-09-26