PHPackages                             whitecube/bem-components - 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. [Templating &amp; Views](/categories/templating)
4. /
5. whitecube/bem-components

ActiveLibrary[Templating &amp; Views](/categories/templating)

whitecube/bem-components
========================

BEM view components in Laravel

v2.2.0(11mo ago)37.0kMITPHPCI failing

Since Oct 27Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/whitecube/bem-components)[ Packagist](https://packagist.org/packages/whitecube/bem-components)[ RSS](/packages/whitecube-bem-components/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

Easy BEM CSS classes for Laravel Components
===========================================

[](#easy-bem-css-classes-for-laravel-components)

This package introduces a `HasBemClasses` trait that you can use in Laravel's `App\View\Components` instances, providing a few useful helper methods and automations for a seamless BEM-style integration in your workflow.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require whitecube/bem-components
```

Usage
-----

[](#usage)

Generate your component files as you are used to, then add the `Whitecube\BemComponents\HasBemClasses` trait to the component's view controller in `App\View\Components`:

```
