projektgopher/scrawl
Composer 安装命令:
composer require projektgopher/scrawl
包简介
Lowest barrier to entry blogging solution for Laravel
README 文档
README
verb. To write in a hurried or careless way.
Just get writing.
Scrawl is designed to be the lowest friction markdown file based single user blogging solution for Laravel
Documentation
For the full documentation, visit the Scrawl home page.
Installation
You can install the package via composer:
composer require projektgopher/scrawl
You can publish the config file with:
php artisan vendor:publish --provider="Projektgopher\Scrawl\BlogServiceProvider" --tag="scrawl-config"
This is the contents of the published config file:
return [ /** * These folders are located in the resources directory. We suggest * storing them in a directory named md (markdown) to follow * with the conventions of the resources directory. */ "unpublished_directory" => "md/scrawl/unpublished", "published_directory" => "md/scrawl/published", "blog_directory" => "md/scrawl", "author_bio" => "", "author_name" => "", "author_link" => "", "author_photo" => "", "author_photo_alt" => "", "route_group" => "blog", "view" => [ /** * Read the list of driver options below, and * choose the option that best suits you. */ "driver" => "standalone", /** * Use "none" if you'd like to return the data as JSON. * Particularly useful for Vue or React based blogs. */ "none" => "", /** * Use "custom" if you don't have a main layout file * but also don't want to use the one provided. */ "custom" => "", /** * Use "standalone" if you don't have a main layout * file. Great for just getting started quickly. * You can alawys move to a layout based * setup later on. */ "standalone" => "", /** * Use "x-component" if your views include a blade * layout component such as <x-layouts.app /> */ "x-component" => [ "component" => "layouts.app", ], /** * Use "blade-layout" if your views extend a * base layout using the @extends method. */ "blade-layout" => [ "extends" => "layouts.app", "section" => "body", ], ], ];
Usage
Scrawl is desgined to be used on the CLI. It will automatically register the blog routes, and requires no database as this package is file based, and meant to have your content comitted to the project. Only posts saved in the 'published' directory will be publicly accessible.
php artisan blog:make 'long title that should be sluggified'
This command will ensure that the unpublished directory exists, copy the .md blog post stub into the 'unpublished' directory with a sluggified title.
Now you can just get into writing your post in github flavored markdown without worrying about all the details.
php artisan blog:publish 'name of blog you would like to move to the published directory'
php artisan blog:unpublish 'name of the blog you should not have published yet'
Testing
vendor/bin/phpunit --testdox
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
projektgopher/scrawl 适用场景与选型建议
projektgopher/scrawl 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 09 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「blog」 「markdown」 「laravel」 「laravel-blog」 「ProjektGopher」 「scrawl」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 projektgopher/scrawl 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 projektgopher/scrawl 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 projektgopher/scrawl 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
Laravel package for opinionated blog implementation
Adds more BBCode
Import an RSS-feed into blog
Faker provider for NumberNine CMS
Creates a markdown changelog for your GitHub repository.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-05