{"action":"created","issue":{"url":"https://api.github.com/repos/wsdookadr/fieldtop/issues/5","repository_url":"https://api.github.com/repos/wsdookadr/fieldtop","labels_url":"https://api.github.com/repos/wsdookadr/fieldtop/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/wsdookadr/fieldtop/issues/5/comments","events_url":"https://api.github.com/repos/wsdookadr/fieldtop/issues/5/events","html_url":"https://github.com/wsdookadr/fieldtop/pull/5","id":166837452,"number":5,"title":"Introduced Symfony Console, PSR-1/2, Composer, PSR-4/Namespaces and ","user":{"login":"marcj","id":450980,"avatar_url":"https://avatars.githubusercontent.com/u/450980?v=3","gravatar_id":"","url":"https://api.github.com/users/marcj","html_url":"https://github.com/marcj","followers_url":"https://api.github.com/users/marcj/followers","following_url":"https://api.github.com/users/marcj/following{/other_user}","gists_url":"https://api.github.com/users/marcj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcj/subscriptions","organizations_url":"https://api.github.com/users/marcj/orgs","repos_url":"https://api.github.com/users/marcj/repos","events_url":"https://api.github.com/users/marcj/events{/privacy}","received_events_url":"https://api.github.com/users/marcj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-21T14:45:39Z","updated_at":"2016-07-23T14:32:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wsdookadr/fieldtop/pulls/5","html_url":"https://github.com/wsdookadr/fieldtop/pull/5","diff_url":"https://github.com/wsdookadr/fieldtop/pull/5.diff","patch_url":"https://github.com/wsdookadr/fieldtop/pull/5.patch"},"body":"… more more features.\r\n\r\n\r\nConsole help:\r\n\r\n```bash\r\nmarc@osx ~/bude/fieldtop (master*) $ ./bin/fieldtop --help\r\nUsage:\r\n  check [options] [--] [<host>]\r\n\r\nArguments:\r\n  host                       The server location [default: \"localhost\"]\r\n\r\nOptions:\r\n  -u, --user[=USER]          Username to use. [default: \"marc\"]\r\n  -p, --password[=PASSWORD]  Password to use. Default is none\r\n  -m, --max[=MAX]            How many columns max [default: 100]\r\n  -d, --database[=DATABASE]  If you want to limit the search to a particular database. Default all databases\r\n  -h, --help                 Display this help message\r\n  -q, --quiet                Do not output any message\r\n  -V, --version              Display this application version\r\n      --ansi                 Force ANSI output\r\n      --no-ansi              Disable ANSI output\r\n  -n, --no-interaction       Do not ask any interactive question\r\n  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\r\n```\r\n\r\nExample:\r\n\r\n```\r\n./bin/fieldtop -u root -p superpw --max=200 --database=project_a\r\n```\r\n\r\nAdded new features:\r\n\r\nAllow host/username/password through cli.\r\n\r\n`--max` argument: to limit the output. I had so many columns that my console buffer rans full, although I'm only interested in the top.\r\n\r\n`--database` argument: to limit to a database:  I have for example dozens of database on my server. It took a while until the script was done.\r\n\r\n\r\n## Next steps\r\n\r\n1. Add it to packagist.org\r\n2. Maybe think about new sorting so `--max` makes more sense (in terms of: sort it that interesting values are at the top)"},"comment":{"url":"https://api.github.com/repos/wsdookadr/fieldtop/issues/comments/234721219","html_url":"https://github.com/wsdookadr/fieldtop/pull/5#issuecomment-234721219","issue_url":"https://api.github.com/repos/wsdookadr/fieldtop/issues/5","id":234721219,"user":{"login":"marcj","id":450980,"avatar_url":"https://avatars.githubusercontent.com/u/450980?v=3","gravatar_id":"","url":"https://api.github.com/users/marcj","html_url":"https://github.com/marcj","followers_url":"https://api.github.com/users/marcj/followers","following_url":"https://api.github.com/users/marcj/following{/other_user}","gists_url":"https://api.github.com/users/marcj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcj/subscriptions","organizations_url":"https://api.github.com/users/marcj/orgs","repos_url":"https://api.github.com/users/marcj/repos","events_url":"https://api.github.com/users/marcj/events{/privacy}","received_events_url":"https://api.github.com/users/marcj/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T14:32:05Z","updated_at":"2016-07-23T14:32:05Z","body":"> While Symfony users may find this tool useful and we would welcome them all to use this tool, our common goal is to maximize the user-base, and in order to reach that goal we would need to keep close to what PHP ships with\r\n\r\nEvery php application has dependencies. user-base is not decreased when you use dependencies, except you build a library (which fieldtop is not) and you need high portability between various versions. However, even if this would be a library, the dependency requirements are very liberal. It has Symfony console `~2.3||~3.0` which means basically all version from the last years. Also, maybe you're not aware of it: A Symfony component is not equal to Symfony. If you use one component, you use one component, not Symfony completely nor do you restrict the usage to Symfony. You do not exclude people with different Symfony versions (since our version constraint is very loose) and it works perfectly fine with different frameworks (CakePHP/Laravel/Zend/... will work with this as well). However, I don't think people will integrate fieldtop in their project as class dependencies, rather as application dependency; Means: They will use the \"binary\" `fieldtop`, not your php classes.\r\n\r\nYou mentioned php version constraint to php 5.5.9, which I guess you think may decrease the user-base even more. One statement about that: PHP 5.5 and low are not supported version anymore from the php project.\r\n\r\nOne tip maybe: Getting around dependencies or version constraints do usually not increase noticeable a user-base. You only make your live dramatically more difficult with that.\r\n\r\nWhat you get with this is:\r\n1. Projects with old code base and old php versions (which is pain to support for both: you and the owner).\r\n2. edge case scenarios (user A has a same dependency but with extremely old version). \r\n3. higher costs of maintenance. Write Symfony Console via `getopt` on your own should simply not be a goal at all. It's a waste of time with no benefit.\r\n\r\nWhat you don't get:\r\n1. higher user-base"}}
{"actor":{"display_login":"marcj"}}