{"id":15914627,"url":"https://github.com/68publishers/asset","last_synced_at":"2025-03-23T01:31:32.101Z","repository":{"id":49556671,"uuid":"187718666","full_name":"68publishers/asset","owner":"68publishers","description":"📂 Intergration of Symfony's Assets component into Nette Framework","archived":false,"fork":false,"pushed_at":"2024-08-06T00:44:32.000Z","size":60,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-07T06:53:56.713Z","etag":null,"topics":["assets","nette","symfony"],"latest_commit_sha":null,"homepage":"","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/68publishers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2019-05-20T21:54:53.000Z","updated_at":"2024-08-05T23:21:40.000Z","dependencies_parsed_at":"2024-08-06T01:57:24.211Z","dependency_job_id":null,"html_url":"https://github.com/68publishers/asset","commit_stats":{"total_commits":33,"total_committers":4,"mean_commits":8.25,"dds":"0.21212121212121215","last_synced_commit":"a045a321bc4dee1b59a845ff26300d5a796afd83"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fasset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fasset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fasset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/68publishers%2Fasset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/68publishers","download_url":"https://codeload.github.com/68publishers/asset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221841866,"owners_count":16890063,"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":["assets","nette","symfony"],"created_at":"2024-10-06T17:04:47.881Z","updated_at":"2024-10-28T14:41:28.337Z","avatar_url":"https://github.com/68publishers.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSymfony Asset Component in Nette\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eIntegration of \u003ca href=\"https://github.com/symfony/asset\"\u003esymfony/asset\u003c/a\u003e into Nette Framework.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/68publishers/asset/actions\"\u003e\u003cimg alt=\"Checks\" src=\"https://badgen.net/github/checks/68publishers/asset/master\"\u003e\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/68publishers/asset?branch=master\"\u003e\u003cimg alt=\"Coverage Status\" src=\"https://coveralls.io/repos/github/68publishers/asset/badge.svg?branch=master\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/68publishers/asset\"\u003e\u003cimg alt=\"Total Downloads\" src=\"https://badgen.net/packagist/dt/68publishers/asset\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/68publishers/asset\"\u003e\u003cimg alt=\"Latest Version\" src=\"https://badgen.net/packagist/v/68publishers/asset\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/68publishers/asset\"\u003e\u003cimg alt=\"PHP Version\" src=\"https://badgen.net/packagist/php/68publishers/asset\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\nThe best way to install 68publishers/asset is using Composer:\n\n```sh\n$ composer require 68publishers/asset\n```\n\n## Usage\n\nSimply register a compiler extension into DIC:\n\n```neon\nextensions:\n\tasset: SixtyEightPublishers\\Asset\\Bridge\\Nette\\DI\\AssetExtension\n\nasset:\n\t# your configuration\n```\n\nConfiguration options are described in official [Symfony documentation](https://symfony.com/doc/6.0/reference/configuration/framework.html#assets)\n\n## Usage in Latte templates\n\n```latte\n{* Use default package *}\n\u003cimg src=\"{asset 'my/awesome/image.png'}\" alt=\"...\"\u003e\u003c/a\u003e\n\u003cp\u003eVersion: {asset_version 'my/awesome/image.png'}\u003c/p\u003e\n\n\n{* Use \"foo\" package *}\n\u003cimg src=\"{asset 'my/awesome/image.png', 'foo'}\" alt=\"...\"\u003e\u003c/a\u003e\n\u003cp\u003eVersion: {asset_version 'my/awesome/image.png', 'foo'}\u003c/p\u003e\n```\n\nYou can also use a function equivalent. For example if you want to store result in variable:\n\n```latte\n{var $asset = asset('my/awesome/image.png')}\n{var $asset = asset('my/awesome/image.png', 'foo')}\n\n{var $version = asset_version('my/awesome/image.png')}\n{var $version = asset_version('my/awesome/image.png', 'foo')}\n```\n\n## Contributing\n\nBefore opening a pull request, please check your changes using the following commands\n\n```bash\n$ make init # to pull and start all docker images\n\n$ make cs.check\n$ make stan\n$ make tests.all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F68publishers%2Fasset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F68publishers%2Fasset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F68publishers%2Fasset/lists"}