booellean/apa-formatter
Composer 安装命令:
composer require booellean/apa-formatter
包简介
A set of functions that will build a publication into formatted html
README 文档
README
This package is for formatting publications and research grants into APA formatted html. This package has prebuilt functions to format your publication, or individual functions to pass to create an APA format with more customality.
List of Primary Functions
- apaFormatBookChapter()
- apaFormatBookEntry()
- apaFormatBookReview()
- apaFormatConferencePaper()
- apaFormatDissertationOrThesis()
- apaFormatEditorial()
- apaFormatForeword()
- apaFormatJournalEntry()
- apaFormatReport()
- apaFormatSoftware()
- apaFormatVideoGame()
- apaFormatVideoSeries()
- apaFormatWebProject()
- apaFormatResearchBrief()
- apaFormatDefaultItem()
To Keep this README manageable, please look in trait code for examples of what types of publications should be used with which function. The Code has very in depth comments about this.
List of Secondary Functions
Sometimes we want to do special formatting (i.e. hyperlinking a book name) for our APA formatted entry. In that case, use the secondary building functions to create a custom entry.
- apaStructureAuthors() - Outputs author string from Array
- apaAddIfElseCharacter() - Very specialized Shorthad logic. Sometimes we need a comma, sometimes we don't. We can pass values here to check that all exist before we output that character.
- apaGetEdition() - Formats Edition of publication
- apaGetEditors() - Outputs editors string from Array
- apaGetPageNumbers() - Formats page numbers of publication
- apaGetPublishing() - Sets up Publiching info from the city/state and publisher passed
- apaGetSecondaryTitle() - Outputs a chapter entry or journal name if secondary title is present
- apaGetTitle() - Get Title as emphasized html for publication
- apaGetType() - Formats type of publication if present
- apaGetUrl() - Formats an anchor tag with url if present
- apaGetVolumeAndIssue() - Formats Volume and Issue appropriately if none, some, or both are present
- apaGetYear() - Returns year or properly formats that year is unknown
There are many examples in the Primary Functions' code that illustrate how these may be used in conjunction
Example Publication Array
A Publication is an array passed. Not every publication will have the following properties, but this is a complete list of probably properties for a publication array:
$pub = [ 'authors' => [ [ 'last_name' => 'Isaka', 'first_name' => 'Kotaro', 'middle_name' => '' ], [ 'last_name' => 'Hayashi', 'first_name' => 'Tamio', 'middle_name' => '' ] ], 'conf_city_state' => 'New York, NY', 'editors' => [ [ 'last_name' => 'Oohata', 'first_name' => 'Eisuke', 'middle_name' => '' ] ], 'issue' => 6, 'page_number' => '320', 'pub_city_state' => 'New York, NY', 'publication' => 'Fisshū Sutōrī', 'publisher' => 'New York Asian Film Festival', 'status' => 'Published', 'title' => 'Fish Story', 'title_secondary' => 'The Story of My Life if My Life Were a Fish', 'type' => 'Movie', 'url' => 'https://en.wikipedia.org/wiki/Fish_Story_(film)', 'volume' => 1, 'year_published' => 2009,
Note: Unfortunately, with our limited information, this trait does not support fields for a Publisher Platform or DOI:DOI Number.
booellean/apa-formatter 适用场景与选型建议
booellean/apa-formatter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.06k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 04 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 booellean/apa-formatter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 booellean/apa-formatter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-17