Download the PHP package forehalo/materialize-blog without Composer
On this page you can find all versions of the php package forehalo/materialize-blog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download forehalo/materialize-blog
More information about forehalo/materialize-blog
Files in forehalo/materialize-blog
Package materialize-blog
Short Description A new blog management system disigned according to Google Material Design.
License MIT
Informations about the package materialize-blog
Materialize Blog
A new blog management system designed according to Google Material Design.
Back-end base on Laravel 5.3, a PHP application framework with expressive, elegant syntax.
Front-end built with Vue, a Progressive JavaScript Framework bring data binding to js.
Demo at Forehalo' blog.
Feature
- Single page
- Creating with markdown (Javascript parser: marked, PHP parser: parsedown)
- Code highlight (Prism)
- Self host comments
- Easy localization
- Use sw-precache to cache static assets.
Install
Project
The php package manager composer
is required for installing.
It will automatically install laravel and other dependencies for you.
Or you can install from this git repository manually
Ensure you have finish all the steps mentioned in laravel docs
.
Next step, migrate tables and seed fakers
The
db:seed
command will seedadmin
andsettings
table. If you want to pre-generate some mock data, run again with option--class=BlogSeeder
Now you can login dashboard at /dashboard
with name admin
or email [email protected]
, password admin
.
Images
Maybe you want to store all images to local, it gives you an simple way.
Create an symbolic link public/storage
target storage/app/public
folder.
So now, you can upload images and get it with url example.com/storage/images/image.jpg
. All images stored in storage/app/public/images
folder.
Pages
Materialize-blog also provide a way to publish pages. What you need to do is just writing a markdown file and store it under storage/pages
folder. Then, you can access it by url https://example.com/pages/{name}
, name
is the markdown file name without extension .md
. There is an existent page named about
. Try it out.
Custom
All front-end assets has been compiled so you could directly use them without compiling manually.
But if you don't like the default theme, hm... OK, install front-end environment and DIY.
yarn
is another package manager like npm
, read more.
Resources are putted in /resources
folder.
Style & Script
run the following command after install all dependencies. This will watch all assets files, and auto-compile when change saved.
Before working, ensure you know well about Vue and Sass.
Language
You can esaily add another language support by adding a subfolder in resources/lang
. Every file returns a php array. Copy and translate all the files.
Dictionary used by Vue should be putted in
resources/lang/your_lang/app.php
Modify the locale
item value to your default language folder name in config/app.php
. Done!
Then, use trans()
global helper function in PHP, and this.$trans()
in Vue components.
License
Copyright (c) 2015-2017 Forehalo
All versions of materialize-blog with dependencies
laravel/framework Version 5.3.*
erusev/parsedown Version ^1.6
recca0120/laravel-tracy Version ^1.7
doctrine/dbal Version ^2.5