{"id":15167169,"url":"https://github.com/deprecated-packages/barista","last_synced_at":"2025-10-01T00:31:02.885Z","repository":{"id":57679479,"uuid":"492329031","full_name":"deprecated-packages/barista","owner":"deprecated-packages","description":"The Barista explores every Latte (file) for strict quality, helps with Latte 2 to 3 upgrade","archived":true,"fork":false,"pushed_at":"2022-05-31T19:25:48.000Z","size":80,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-06T03:23:15.732Z","etag":null,"topics":["ast","latte","nette","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deprecated-packages.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-14T21:29:32.000Z","updated_at":"2023-01-27T21:32:40.000Z","dependencies_parsed_at":"2022-09-14T11:41:00.308Z","dependency_job_id":null,"html_url":"https://github.com/deprecated-packages/barista","commit_stats":null,"previous_names":["tomasvotruba/barista"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2Fbarista","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2Fbarista/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2Fbarista/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deprecated-packages%2Fbarista/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deprecated-packages","download_url":"https://codeload.github.com/deprecated-packages/barista/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234796856,"owners_count":18888156,"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":["ast","latte","nette","php"],"created_at":"2024-09-27T05:40:57.560Z","updated_at":"2025-10-01T00:31:02.480Z","avatar_url":"https://github.com/deprecated-packages.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Barista makes Your Perfectly Tasty Latte\n\nDo you drink [Latte](https://latte.nette.org/en/) with your templates?\n\nGet it from Barista that knows his job:\n\n* explore Latte via node visitors\n* upgrade Latte 2 to 3\n* lint your Latte files with context of your project\n\n\n## Lint Your Files with Custom Macros and Filters\n\nNative latte linter does not understand the context of your project. If you use custom macros or filters, it will be falsely reported as missing. The Barista Linter fixes this.\n\nTo get context aware Latte, we have to provide it via custom PHP file. This file must return the `Latte\\Engine` from your project. Create e.g. `tests/latte-provider.php` with following content:\n\n```php\nuse App\\DI\\ContainerFactory;\nuse Nette\\Bridges\\ApplicationLatte\\LatteFactory\n\n$containerFactory = new ContainerFactory();\n$container = $containerFactory-\u003ecreate();\n\n/** @var LatteFactory $latteFactory */\n$latteFactory = $container-\u003egetByType(LatteFactory::class);\nreturn $latteFactory-\u003ecreate();\n```\n\nCreate `barista.neon` in your root and configure parameter:\n\n```yaml\nparameters:\n    latteProviderFile: \"tests/latte-provider.php\"\n```\n\nThen run linting command on your paths:\n\n```bash\nvendor/bin/barista lint templates/some-file.latte\n```\n\nThen linter knows about all your macros and functions and reports only real bugs!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeprecated-packages%2Fbarista","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeprecated-packages%2Fbarista","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeprecated-packages%2Fbarista/lists"}