PHPackages                             netflie/componentes - 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. netflie/componentes

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

netflie/componentes
===================

A PHP compiler to create HTML custom elements

v1.0.0(6y ago)412[1 issues](https://github.com/netflie/componentes/issues)MITPHPPHP ^7.2.5CI failing

Since Jan 29Pushed 6y ago4 watchersCompare

[ Source](https://github.com/netflie/componentes)[ Packagist](https://packagist.org/packages/netflie/componentes)[ RSS](/packages/netflie-componentes/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Components
==========

[](#components)

[![GitHub Workflow Status](https://camo.githubusercontent.com/7900d16eb2da685822eff1a3c544ad8e9221e702a3f2887399f9372a0d3865d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e6574666c69652f636f6d706f6e656e7465732f504850253230436f6d706f7365723f6c6162656c3d7465737473)](https://github.com/netflie/componentes/actions?query=workflow%3A%22PHP+Composer%22) [![Quality Score](https://camo.githubusercontent.com/755ae726929be6790985070a81c69c83c109654e753af01dde7014a417882d66/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6574666c69652f636f6d706f6e656e7465732e737667)](https://scrutinizer-ci.com/g/netflie/componentes)

This PHP package provides a server-side compiler to render custom HTML components. This package is inspired by the [BladeX](https://github.com/spatie/laravel-blade-x/) package for Laravel. From the new 1.0.0 version this package uses the **Laravel Blade Compiler**. You can now use all the functionalities (non-anonymous components are not supported yet) provided by [Laravel Blade Components](https://laravel.com/docs/7.x/blade#components).

You can write this:

```

```

And the output will be:

```
I'm an alert
```

You can place the content of that alert in a simple Blade view that needs to be registered before using the my-alert component:

```

  {{ $message }}

```

Installation
============

[](#installation)

```
composer require netflie/componentes

```

Usage
=====

[](#usage)

### Setup

[](#setup)

Before writting your first component you have to setup the view filesystem, the place where you component templates will be stored:

```
