PHPackages                             machaen/blog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. machaen/blog

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

machaen/blog
============

Blog Plugin

06CSS

Since Mar 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/machaen/BlogJM)[ Packagist](https://packagist.org/packages/machaen/blog)[ RSS](/packages/machaen-blog/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BLOG MACHAEN
============

[](#blog-machaen)

Simple plugin to generate an enviroment blog

Installation and configuration
------------------------------

[](#installation-and-configuration)

1 - Add to file `composer.json` the next line and eject a composer update:

```
{
    "require": {
        "machaen/blog": "dev-master"
    }
}
```

2 - Add the providers and aliases necessary to file `config/app.php`:

```
'providers' => [
		'Illuminate\Html\HtmlServiceProvider',
		'Dimsav\Translatable\TranslatableServiceProvider',
		'Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider',
		'Machaen\Blog\BlogServiceProvider',
	]
	.....
'aliases' => [
    	'Form'                  => 'Illuminate\Html\FormFacade',
    	'LaravelLocalization'   => 'Mcamara\LaravelLocalization\Facades\LaravelLocalization',
	]
```

3 - Public files whith the next command:

```
php artisan vendor:publish
```

4 - Import files `blog.css` and `blog.js` inside our project:

```

```

5 - Add middlewares to `app/Http/kernel.php`:

```
...
protected $routeMiddleware = [
	'localize'              => '\Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRoutes',
	'localizationRedirect'  => '\Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRedirectFilter',
	'localeSessionRedirect' => '\Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect'
];
```

6 - Add routes to `app/Http/routes.php`:

```
/***
Other routes
.............
 ***/

Route::group(
[
	'prefix' 		=> LaravelLocalization::setLocale(),
	'middleware' 	=> [ 'localeSessionRedirect', 'localizationRedirect' ]
],
function(){
    Route::get(LaravelLocalization::transRoute('blog.blog-index'),['as' => 'blog.index', 'uses' => '\Machaen\Blog\BlogController@index']);
    Route::get(LaravelLocalization::transRoute('blog.blog-show'),['as' => 'blog.show', 'uses' => '\Machaen\Blog\BlogController@show']);
});
```

7 - Finally you have to migrate and insert your seeds:

```
	php artisan migrate:refresh --seed
```

Translations button
-------------------

[](#translations-button)

It's necessary configure a button that's allow change our locale and set the lenguage (only in the preview post). So, we have to insert the next condition inside our action link, for example:

```
	/*----------  PREVIEW BLOG POST  ----------*/

	/* This line call the function "getRouteBlog" that's create a link with the parameters necessary for translate the current route. Here we past the route at layout our project */
	@extends('app', ['route_blog' => \Machaen\Blog\Helpers::getRouteBlog($post->id)])

	/*----------  LAYOUT  ----------*/

	@if(LaravelLocalization::getCurrentLocale() == 'en')
      ESPAÑOL
    @else
      ENGLISH
    @endif

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbac3b942b2d8db78cdf2b23563d3a33746e1138313103d9f92212875acd002a?d=identicon)[machaen](/maintainers/machaen)

---

Top Contributors

[![machaen](https://avatars.githubusercontent.com/u/5369215?v=4)](https://github.com/machaen "machaen (1 commits)")

### Embed Badge

![Health badge](/badges/machaen-blog/health.svg)

```
[![Health](https://phpackages.com/badges/machaen-blog/health.svg)](https://phpackages.com/packages/machaen-blog)
```

###  Alternatives

[leocarmo/graceful-shutdown-php

Graceful Shutdown for PHP

18108.2k](/packages/leocarmo-graceful-shutdown-php)[bogdaan/open-location-code

Open location code for php

1076.5k](/packages/bogdaan-open-location-code)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
