{"id":20381253,"url":"https://github.com/drago-ex/application","last_synced_at":"2026-03-10T17:33:48.619Z","repository":{"id":56971795,"uuid":"44514901","full_name":"drago-ex/application","owner":"drago-ex","description":":mega: Extension for Nette Framework, providing reusable UI components, alert types, and flash message handling.","archived":false,"fork":false,"pushed_at":"2025-12-30T07:48:08.000Z","size":223,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-09T01:47:03.604Z","etag":null,"topics":["application","nette"],"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/drago-ex.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-10-19T06:19:16.000Z","updated_at":"2025-12-30T07:48:12.000Z","dependencies_parsed_at":"2022-08-21T12:50:15.414Z","dependency_job_id":"89c160b4-29f4-40ad-ad15-47302870443a","html_url":"https://github.com/drago-ex/application","commit_stats":{"total_commits":266,"total_committers":3,"mean_commits":88.66666666666667,"dds":0.007518796992481258,"last_synced_commit":"2c7d787c6e27c51c4113d2c37271643421ea9b0c"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/drago-ex/application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fapplication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fapplication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fapplication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fapplication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drago-ex","download_url":"https://codeload.github.com/drago-ex/application/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fapplication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30344473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["application","nette"],"created_at":"2024-11-15T02:12:34.087Z","updated_at":"2026-03-10T17:33:48.603Z","avatar_url":"https://github.com/drago-ex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Drago Application\r\nThe Drago Extension is a package built on top of the Nette Framework, designed to provide several useful\r\ncomponents for your web applications. Below are the classes in the extension and how you can use them.\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/drago-ex/application/master/license)\r\n[![PHP version](https://badge.fury.io/ph/drago-ex%2Fapplication.svg)](https://badge.fury.io/ph/drago-ex%2Fapplication)\r\n[![Coding Style](https://github.com/drago-ex/application/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/application/actions/workflows/coding-style.yml)\r\n[![CodeFactor](https://www.codefactor.io/repository/github/drago-ex/application/badge)](https://www.codefactor.io/repository/github/drago-ex/application)\r\n\r\n## Requirements\r\n- PHP \u003e= 8.3\r\n- Nette Framework\r\n- Composer\r\n- Bootstrap\r\n- Naja\r\n\r\n## Installation\r\n```\r\ncomposer require drago-ex/application\r\n```\r\n\r\n## Check if there is a pair signal receiver and name (default is edit).\r\n```php\r\n$this-\u003egetSignal();\r\n```\r\n\r\n## Is AJAX request?\r\nShorter method in control.\r\n```php\r\n$this-\u003eisAjax();\r\n```\r\n\r\n## Retrieves a form component by its name.\r\n```php\r\n$form = $this['factory'];\r\n$submitButton = $this-\u003egetFormComponent($form, 'submit');\r\n$submitButton-\u003esetCaption('Edit');\r\n```\r\n\r\n## Base template class extending Nette Template.\r\nIt is used in the bow of presenters or control\r\n```php\r\n/**\r\n * @property-read Drago\\Application\\UI\\ExtraTemplate $template\r\n */\r\nclass Presenter {}\r\n```\r\n\r\nIn Latte, we will use these macros to insert into the template, which will tell us the\r\nvariables and types that can be used by default in the template.\r\n```latte\r\n{templateType Drago\\Application\\UI\\ExtraTemplate}\r\n{varType Drago\\Application\\UI\\Flashes[] $flashes}\r\n\r\n\u003cdiv n:foreach=\"$flashes as $flash\" n:class=\"flash, $flash-\u003etype\"\u003e{$flash-\u003emessage}\u003c/div\u003e\r\n```\r\n\r\n## Flash message alert type\r\n- [Alert](https://github.com/drago-ex/application/blob/master/src/Drago/Application/UI/Alert.php)\r\n\r\n## Toast - Bootstrap and naja component for flash messages\r\n```JavaScript\r\nimport BootstrapComponents from 'path/to/naja.toast';\r\n```\r\n\r\n## Using toast in a latte template\r\n```latte\r\n {include 'path/to/@toast.latte', flashes =\u003e $flashes}\r\n```\r\n\r\nCopy the Latte template from assets to your project.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fapplication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrago-ex%2Fapplication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fapplication/lists"}