Download the PHP package abr4xas/simple-blog without Composer
On this page you can find all versions of the php package abr4xas/simple-blog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abr4xas/simple-blog
More information about abr4xas/simple-blog
Files in abr4xas/simple-blog
Package simple-blog
Short Description A witty description goes here
License MIT
Homepage https://github.com/abr4xas/simple-blog
Informations about the package simple-blog
Laravel package to handle a simple blog
Installation
You can install the package via composer:
You can publish and run the migrations and everything else with:
Usage
This package uses a polymorphic relationship to associate the Items model with the model of your choice, the only thing you have to do is add the following trait: Abr4xas\SimpleBlog\Traits\HasArticle
to the model you want to use.
To create an article you need to do something like this:
Syntax highlighting
This package uses: Torchlight CommonMark, so, you need an api key to make it work. Follow this docs: https://torchlight.dev/docs/clients/commonmark-php
If you want to activate the copyable option to torchlight you need to do the following:
Edit your config/torchlight.php
file to include the following in the options array:
Next, make sure to register this javascript snippet inside your app.js
file like this:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- angel cruz
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of simple-blog with dependencies
guzzlehttp/guzzle Version ^7.7
league/commonmark Version ^2.4
simonvomeyser/commonmark-ext-lazy-image Version ^2.0
spatie/laravel-enum Version ^3.0
spatie/laravel-package-tools Version ^1.16
torchlight/torchlight-commonmark Version ^0.5.5