2017 © Pedro PelĂĄez
 

package markup

PHP HTML Markup generator

image

arcanedev/markup

PHP HTML Markup generator

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

PHP HTML MARKUP Generator Packagist License

Travis Status Coverage Status Scrutinizer Code Quality Github Release Packagist Downloads Github Issues, (*1)

By ARCANEDEV©, (*2)

Create HTML tags and render them efficiently., (*3)

Requirements

- PHP >= 5.4.0

Installation

Composer

You can install the package via Composer. Add this to your composer.json:, (*4)

{
    "require": {
        "arcanedev/markup": "~1.1"
    }
}

Then install it via composer install or composer update., (*5)

Laravel

After the installation, include the service provider within app/config/app.php., (*6)

'providers' => [
    ...
    'Arcanedev\Markup\Laravel\ServiceProvider',
];

And finally, add the facade alias to this same file at the bottom:, (*7)

'aliases' => [
    ...
    'Markup' => 'Arcanedev\Markup\Laravel\Facade',
];

USAGE

To generate your title tag for example :, (*8)

$title = Markup::title('Hello world');
echo $title->render()

// or 
echo Markup::title('Hello world');

// The result: <title>Hello world</title>

And There is more:, (*9)

echo Markup::img('img/logo.png', 'alt Logo', ['class' => 'logo img-responsive']);
// Result : <img src="img/logo.png" alt="alt Logo" class="logo img-responsive"/> 

echo Markup::meta('property', 'og:description', 'Site web description');
// Result : <meta property="og:description" content="Site web description"/>

echo Markup::link('page/about-us', 'About us', ['class' => 'btn btn-info']);
// Result : <a href="page/about-us" class="btn btn-info">About us</a>

echo Markup::style('assets/css/style.css', ['media' => 'all']);
// Result : <link rel="stylesheet" href="assets/css/style.css" type="text/css" media="all"/>

echo Markup::script('assets/js/app.js');
// Result : 

Contribution

Any ideas are welcome. Feel free the submit any issues or pull requests., (*10)

TODO

  • [ ] Documentation
  • [ ] Examples
  • [x] More tests and code coverage
  • [x] Laravel Support (v4.2)
  • [ ] Laravel Support (v5.0)
  • [ ] Refactoring

License

Markup package is licenced under the MIT license., (*11)

The Versions

20/01 2015

dev-master

9999999-dev https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

laravel php generator html tags markup meta

20/01 2015

dev-develop

dev-develop https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

laravel php generator html tags markup meta

20/01 2015

1.2.0

1.2.0.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

laravel php generator html tags markup meta

20/01 2015

1.1.0

1.1.0.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

laravel php generator html tags markup meta

09/01 2015

1.0.6

1.0.6.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php generator html tags markup meta

09/01 2015

1.0.5

1.0.5.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php generator html tags markup meta

09/01 2015

1.0.3

1.0.3.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php generator html tags markup meta

07/01 2015

1.0.2

1.0.2.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php generator html tags markup meta

06/01 2015

1.0.1

1.0.1.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php generator html tags markup meta

05/01 2015

1.0.0

1.0.0.0 https://github.com/ARCANEDEV/Markup

PHP HTML Markup generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

php generator html tags markup meta