{"id":17284674,"url":"https://github.com/exu/symfony2-console-standalone","last_synced_at":"2025-10-08T08:10:07.251Z","repository":{"id":8403371,"uuid":"9985220","full_name":"exu/symfony2-console-standalone","owner":"exu","description":"Using Symfony 2 Console component standalone","archived":false,"fork":false,"pushed_at":"2014-01-10T11:29:35.000Z","size":184,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T16:29:24.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/exu.png","metadata":{"files":{"readme":"README.org","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":"2013-05-10T16:18:10.000Z","updated_at":"2017-10-18T12:52:27.000Z","dependencies_parsed_at":"2022-08-27T04:00:42.217Z","dependency_job_id":null,"html_url":"https://github.com/exu/symfony2-console-standalone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/exu/symfony2-console-standalone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exu%2Fsymfony2-console-standalone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exu%2Fsymfony2-console-standalone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exu%2Fsymfony2-console-standalone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exu%2Fsymfony2-console-standalone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exu","download_url":"https://codeload.github.com/exu/symfony2-console-standalone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exu%2Fsymfony2-console-standalone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278909732,"owners_count":26066891,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-15T09:54:41.803Z","updated_at":"2025-10-08T08:10:07.228Z","avatar_url":"https://github.com/exu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"** Using Symfony2 Console as standalone component.\n\n#+ATTR_HTML: title=\"Google.com\"\n[[http://wysocki.in/assets/img/sf2-console-component.png]]\n\n\n\nAll files are located on My GitHub project: [[https://github.com/exu/symfony2-console-standalone][Symfony2 Console as standalone component]]\n\nTo use symfony console you should create =[[https://github.com/exu/symfony2-console-standalone/blob/master/composer.json][composer.json]]= file and add =symfony/console= component\nYou should replace \"=dev-master=\" to current stable version (I'm trying whats new in development branch).\n\nI'm using composer autoloader, so in this example all classes will be loaded from =src= directory,\nyou can change it to other dir (in =composer.json=)\n\nNext run =$ composer update= to install dependencies in your new project.\n\n\nNext thing to do is Your new shiny command loader.\nPut it in =bin/console= file - or whatever you want - but if you change\ndirectory position remember that you should adjust your paths [[https://github.com/exu/symfony2-console-standalone/blob/master/bin/console][details in console file]]\n\nFinally create your new command [[https://github.com/exu/symfony2-console-standalone/blob/master/src/Command/Test2Command.php][file (src) for example]]:\n\nThats all, command loader should detect this file and load it. You can use your command by running\n=php bin/console say:nothing=.\n\nYou can put other commands in =src/Command=\ndirectory try save content below as =[[https://github.com/exu/symfony2-console-standalone/blob/master/src/Command/TestCommand.php][src/Command/TestCommand.php]]=\n\nand then run:\n=bin/console say:mynamebitch Jacek=\n\nYou will get some nice colorized output.\n\n*** Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexu%2Fsymfony2-console-standalone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexu%2Fsymfony2-console-standalone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexu%2Fsymfony2-console-standalone/lists"}