Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 692 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 692 Bytes

codeTeaser

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>'
    );