{"id":16897790,"url":"https://github.com/endroid/tile","last_synced_at":"2026-05-10T10:08:56.204Z","repository":{"id":56977737,"uuid":"5215170","full_name":"endroid/tile","owner":"endroid","description":"Tile Generator","archived":false,"fork":false,"pushed_at":"2023-11-07T13:10:15.000Z","size":318,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-14T17:39:45.755Z","etag":null,"topics":["php","symfony","tile"],"latest_commit_sha":null,"homepage":"http://endroid.nl/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"endroid"}},"created_at":"2012-07-28T15:00:09.000Z","updated_at":"2023-11-09T16:28:29.000Z","dependencies_parsed_at":"2024-10-26T11:37:22.926Z","dependency_job_id":null,"html_url":"https://github.com/endroid/tile","commit_stats":{"total_commits":99,"total_committers":2,"mean_commits":49.5,"dds":0.04040404040404044,"last_synced_commit":"70952431bfde7f390265ededb3277c437191281b"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Ftile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Ftile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Ftile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endroid%2Ftile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endroid","download_url":"https://codeload.github.com/endroid/tile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244600725,"owners_count":20479307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","symfony","tile"],"created_at":"2024-10-13T17:39:48.310Z","updated_at":"2026-05-10T10:08:51.158Z","avatar_url":"https://github.com/endroid.png","language":"PHP","funding_links":["https://github.com/sponsors/endroid"],"categories":[],"sub_categories":[],"readme":"# Tile\r\n\r\n*By [endroid](https://endroid.nl/)*\r\n\r\n[![Latest Stable Version](http://img.shields.io/packagist/v/endroid/tile.svg)](https://packagist.org/packages/endroid/tile)\r\n[![Build Status](https://github.com/endroid/tile/workflows/CI/badge.svg)](https://github.com/endroid/tile/actions)\r\n[![Total Downloads](http://img.shields.io/packagist/dt/endroid/tile.svg)](https://packagist.org/packages/endroid/tile)\r\n[![Monthly Downloads](http://img.shields.io/packagist/dm/endroid/tile.svg)](https://packagist.org/packages/endroid/tile)\r\n[![License](http://img.shields.io/packagist/l/endroid/tile.svg)](https://packagist.org/packages/endroid/tile)\r\n\r\nThis library helps you generate images containing a typically Delft blue tile with a saying.\r\n\r\n## Installation\r\n\r\nUse [Composer](https://getcomposer.org/) to install the library.\r\n\r\n``` bash\r\n$ composer require endroid/tile\r\n```\r\n\r\n## Usage\r\n\r\n```php\r\nuse Endroid\\Tile\\Tile;\r\n\r\n$tile = new Tile();\r\n$this-\u003esetBackground(Tile::BACKGROUND_C);\r\n$tile-\u003esetText(\"Life is too short to be generating tiles\");\r\n$tile-\u003esetSize(300);\r\n$tile-\u003erender();\r\n\r\n```\r\n\r\n![Tile](https://endroid.nl/tile/Life%20is%20too%20short%20to%20be%20generating%20tiles.png)\r\n\r\n## Symfony integration\r\n\r\nRegister the Symfony bundle in the kernel.\r\n\r\n```php\r\n// app/AppKernel.php\r\n\r\npublic function registerBundles()\r\n{\r\n    $bundles = [\r\n        // ...\r\n        new Endroid\\Tile\\Bundle\\TileBundle\\EndroidTileBundle(),\r\n    ];\r\n}\r\n```\r\n\r\nAdd the following section to your routing to be able to reach the tile controller.\r\n\r\n``` yml\r\nEndroidTileBundle:\r\n    resource:   \"@EndroidTileBundle/Controller/\"\r\n    type:       annotation\r\n    prefix:     /tile\r\n```\r\n\r\nNow tiles can be generated by appending the tile text to the url as mounted, followed\r\nby the file extension, like /tile/Life_is_too_short_to_be_generating_tiles.png.\r\n\r\n## Twig extension\r\n\r\nThe bundle also provides a Twig extension for quickly generating tile urls.\r\n\r\n``` twig\r\n\u003cimg src=\"{{ tile_url(message) }}\" /\u003e\r\n```\r\n\r\n## Versioning\r\n\r\nVersion numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility\r\nbreaking changes will be kept to a minimum but be aware that these can occur.\r\nLock your dependencies for production and test your code when upgrading.\r\n\r\n## License\r\n\r\nThis bundle is under the MIT license. For the full copyright and license\r\ninformation please view the LICENSE file that was distributed with this source code.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendroid%2Ftile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendroid%2Ftile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendroid%2Ftile/lists"}