Learn how to use Phiki in a Laravel application.
Phiki\Phiki
with a facade.
boot
method of a service provider.
boot
method of a service provider.
CACHE_STORE
) to cache highlighted code blocks.
If you wish to customize the cache store used by Phiki, you can do so in the boot
method of a service provider.
php artisan cache:clear
command, which will clear the entire cache for your application.
Str::markdown()
Str::markdown()
helper method, you can use Phiki’s CommonMark extension to highlight code blocks inside of your Markdown.
PhikiExtension
constructor.
PhikiExtension
constructor.
Phiki
facade as shown above, you can use them inside of your Markdown by resolving the Phiki\Phiki
singleton from Laravel’s service container and passing it to the PhikiExtension
constructor.
Grammar::Php
grammar and the Theme::GithubLight
theme.
gutter
attribute to the component.
starting-line
attribute to the component.
code
attribute.