{"id":21461710,"url":"https://github.com/gabrieljmj/writeln","last_synced_at":"2025-03-17T04:49:55.853Z","repository":{"id":28026012,"uuid":"31521233","full_name":"gabrieljmj/Writeln","owner":"gabrieljmj","description":"Fast and simple Symfony Console command creation","archived":false,"fork":false,"pushed_at":"2015-03-03T19:00:13.000Z","size":140,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T14:31:20.017Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabrieljmj.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}},"created_at":"2015-03-02T03:11:17.000Z","updated_at":"2015-05-25T01:22:49.000Z","dependencies_parsed_at":"2022-09-12T09:41:43.295Z","dependency_job_id":null,"html_url":"https://github.com/gabrieljmj/Writeln","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieljmj%2FWriteln","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieljmj%2FWriteln/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieljmj%2FWriteln/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieljmj%2FWriteln/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrieljmj","download_url":"https://codeload.github.com/gabrieljmj/Writeln/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976503,"owners_count":20377692,"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":[],"created_at":"2024-11-23T07:10:37.118Z","updated_at":"2025-03-17T04:49:55.835Z","avatar_url":"https://github.com/gabrieljmj.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](http://i.imgur.com/JDZP2vC.gif)\n=======\n[![Build Status](https://travis-ci.org/GabrielJMJ/Writeln.svg)](https://travis-ci.org/GabrielJMJ/Writeln)  [![License](https://img.shields.io/packagist/l/gabrieljmj/writeln.svg)](https://packagist.org/packages/gabrieljmj/writeln) [![Latest Unstable Version](https://img.shields.io/badge/unstable-dev--master-orange.svg)](https://packagist.org/packages/gabrieljmj/writeln) [![Total Downloads](https://img.shields.io/packagist/dt/gabrieljmj/wirteln.svg)](https://packagist.org/packages/gabrieljmj/writeln) [![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/gabrieljmj/writeln.svg)](https://scrutinizer-ci.com/g/GabrielJMJ/Writeln/?branch=dev)\n\nFast and simple Symfony Console command creation\n\n## Usage example\n```php\n#!/usr/bin/env php\n\u003c?php\nrequire 'vendor/autoload.php';\n\nuse Gabrieljmj\\Wwriteln\\Wwriteln;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\n$cl = new Writeln();\n$cl-\u003ecommand('hello',\n[\n    $cl-\u003eargument('name', InputArgument::REQUIRED, 'Your name')\n],\n[\n    $cl-\u003eoption('uppercase', 'u', InputOption::VALUE_NONE)\n],\nfunction (InputInterface $input, OutputInterface $output) {\n    $txt = $input-\u003egetOption('uppercase') ? strtoupper('Hello ' . $input-\u003egetArgument('name')) \n      : 'Hello ' . $input-\u003egetArgument('name');\n    $output-\u003ewriteln($txt);\n});\n\n$cl-\u003erun();\n```\n```console\n$ bin hello Gabriel\nHello Gabriel\n\n$ bin hello Gabriel -u\nHELLO GABRIEL\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieljmj%2Fwriteln","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrieljmj%2Fwriteln","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieljmj%2Fwriteln/lists"}