master/code-teaser

Enhancement to the PHP Blog functionality.

v0.0.2 2016-08-01 23:12 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:42:26 UTC


README

Get good looking teaser even if the code was trimmed.

Build status Test Coverage

Installation

composer require master/code-teaser

Usage example

    require __DIR__ . '/vendor/autoload.php';
    $codeTeaserObject = new Trzczy\Model\Domain\codeTeaser();
    $codeTeaser = $codeTeaserObject->build(
        50,
        '<p>Zażółć gęślą jaźń.</p>
    <code script = "js">
        client.setCredentials("user", "passw0rd");
    </code>'
    );