Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Tile Laravel Package

endroid/tile

View on GitHub
Deep Wiki
Context7

Tile

By endroid

Latest Stable Version Build Status Total Downloads Monthly Downloads License

This library helps you generate images containing a typically Delft blue tile with a saying.

Installation

Use Composer to install the library.

$ composer require endroid/tile

Usage

use Endroid\Tile\Tile;

$tile = new Tile();
$this->setBackground(Tile::BACKGROUND_C);
$tile->setText("Life is too short to be generating tiles");
$tile->setSize(300);
$tile->render();

Tile

Symfony integration

Register the Symfony bundle in the kernel.

// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Endroid\Tile\Bundle\TileBundle\EndroidTileBundle(),
    ];
}

Add the following section to your routing to be able to reach the tile controller.

EndroidTileBundle:
    resource:   "@EndroidTileBundle/Controller/"
    type:       annotation
    prefix:     /tile

Now tiles can be generated by appending the tile text to the url as mounted, followed by the file extension, like /tile/Life_is_too_short_to_be_generating_tiles.png.

Twig extension

The bundle also provides a Twig extension for quickly generating tile urls.

<img src="{{ tile_url(message) }}" />

Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums