conversations
listlengths
2
2
[ { "from": "human", "value": "Start an interactive PHP command-line interface via the `php-artisan` command" }, { "from": "gpt", "value": "`php artisan tinker`" } ]
[ { "from": "human", "value": "Generate a new Eloquent model class with a migration, factory and resource controller via the `php-artisan` command" }, { "from": "gpt", "value": "`php artisan make:model {{ModelName}} --all`" } ]
[ { "from": "human", "value": "Display a list of all available commands via the `php-artisan` command" }, { "from": "gpt", "value": "`php artisan help`" } ]
[ { "from": "human", "value": "Tell me about `phpbu`." }, { "from": "gpt", "value": "A backup utility framework for PHP.\nMore information: <https://phpbu.de>.\n" } ]
[ { "from": "human", "value": "Run backups using the default `phpbu.xml` configuration file via the `phpbu` command" }, { "from": "gpt", "value": "`phpbu`" } ]
[ { "from": "human", "value": "Run backups using a specific configuration file via the `phpbu` command" }, { "from": "gpt", "value": "`phpbu --configuration={{path/to/configuration_file.xml}}`" } ]
[ { "from": "human", "value": "Only run the specified backups via the `phpbu` command" }, { "from": "gpt", "value": "`phpbu --limit={{backup_task_name}}`" } ]
[ { "from": "human", "value": "Simulate the actions that would have been performed via the `phpbu` command" }, { "from": "gpt", "value": "`phpbu --simulate`" } ]
[ { "from": "human", "value": "Tell me about `phpcbf`." }, { "from": "gpt", "value": "Fix violations detected by phpcs.\nMore information: <https://github.com/squizlabs/PHP_CodeSniffer>.\n" } ]
[ { "from": "human", "value": "Fix issues in the specified directory (defaults to the PEAR standard) via the `phpcbf` command" }, { "from": "gpt", "value": "`phpcbf {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Display a list of installed coding standards via the `phpcbf` command" }, { "from": "gpt", "value": "`phpcbf -i`" } ]
[ { "from": "human", "value": "Specify a coding standard to validate against via the `phpcbf` command" }, { "from": "gpt", "value": "`phpcbf {{path/to/directory}} --standard {{standard}}`" } ]
[ { "from": "human", "value": "Specify comma-separated file extensions to include when sniffing via the `phpcbf` command" }, { "from": "gpt", "value": "`phpcbf {{path/to/directory}} --extensions {{file_extension1,file_extension2,...}}`" } ]
[ { "from": "human", "value": "A comma-separated list of files to load before processing via the `phpcbf` command" }, { "from": "gpt", "value": "`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...)}}`" } ]
[ { "from": "human", "value": "Don't recurse into subdirectories via the `phpcbf` command" }, { "from": "gpt", "value": "`phpcbf {{path/to/directory}} -l`" } ]
[ { "from": "human", "value": "Tell me about `php-coveralls`." }, { "from": "gpt", "value": "A PHP client for Coveralls.\nMore information: <https://php-coveralls.github.io/php-coveralls>.\n" } ]
[ { "from": "human", "value": "Send coverage information to Coveralls via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls`" } ]
[ { "from": "human", "value": "Send coverage information to Coveralls for a specific directory via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls --root_dir {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Send coverage information to Coveralls with a specific config via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls --config {{path/to/.coveralls.yml}}`" } ]
[ { "from": "human", "value": "Send coverage information to Coveralls with verbose output via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls --verbose`" } ]
[ { "from": "human", "value": "Send coverage information to Coveralls excluding source files with no executable statements via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls --exclude-no-stmt`" } ]
[ { "from": "human", "value": "Send coverage information to Coveralls with a specific environment name via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls --env {{test|dev|prod}}`" } ]
[ { "from": "human", "value": "Specify multiple Coverage Clover XML files to upload via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls --coverage_clover {{path/to/first_clover.xml}} --coverage_clover {{path/to/second_clover.xml}}`" } ]
[ { "from": "human", "value": "Output the JSON that will be sent to Coveralls to a specific file via the `php-coveralls` command" }, { "from": "gpt", "value": "`php-coveralls --json_path {{path/to/coveralls-upload.json}}`" } ]
[ { "from": "human", "value": "Tell me about `phpcpd`." }, { "from": "gpt", "value": "A copy and paste detector for PHP code.\nMore information: <https://github.com/sebastianbergmann/phpcpd>.\n" } ]
[ { "from": "human", "value": "Analyze duplicated code for a specific file or directory via the `phpcpd` command" }, { "from": "gpt", "value": "`phpcpd {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Analyze using fuzzy matching for variable names via the `phpcpd` command" }, { "from": "gpt", "value": "`phpcpd --fuzzy {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Specify a minimum number of identical lines (defaults to 5) via the `phpcpd` command" }, { "from": "gpt", "value": "`phpcpd --min-lines {{number_of_lines}} {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Specify a minimum number of identical tokens (defaults to 70) via the `phpcpd` command" }, { "from": "gpt", "value": "`phpcpd --min-tokens {{number_of_tokens}} {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Exclude a directory from analysis (must be relative to the source) via the `phpcpd` command" }, { "from": "gpt", "value": "`phpcpd --exclude {{path/to/excluded_directory}} {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Output the results to a PHP-CPD XML file via the `phpcpd` command" }, { "from": "gpt", "value": "`phpcpd --log-pmd {{path/to/log_file}} {{path/to/file_or_directory}}`" } ]
[ { "from": "human", "value": "Tell me about `PHP-CS-Fixer`." }, { "from": "gpt", "value": "Automatic coding style fixer for PHP.\nMore information: <https://github.com/FriendsOfPHP/PHP-CS-Fixer>.\n" } ]
[ { "from": "human", "value": "Execute code style fixing in the current directory via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer fix`" } ]
[ { "from": "human", "value": "Execute code style fixing for a specific directory via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer fix {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Execute code style linting without applying changes via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer fix --dry-run`" } ]
[ { "from": "human", "value": "Execute code style fixes using specific rules via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer fix --rules={{rules}}`" } ]
[ { "from": "human", "value": "Display the rules that have been applied via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer fix --verbose`" } ]
[ { "from": "human", "value": "Output the results in a different format via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer fix --format={{txt|json|xml|checkstyle|junit|gitlab}}`" } ]
[ { "from": "human", "value": "Display files that require fixing via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer list-files`" } ]
[ { "from": "human", "value": "Describe a rule or ruleset via the `php-cs-fixer` command" }, { "from": "gpt", "value": "`php-cs-fixer describe {{rule}}`" } ]
[ { "from": "human", "value": "Tell me about `phpcs`." }, { "from": "gpt", "value": "Tokenize PHP, JavaScript and CSS files to detect violations of a defined set of coding standards.\nMore information: <https://github.com/squizlabs/PHP_CodeSniffer>.\n" } ]
[ { "from": "human", "value": "Sniff the specified directory for issues (defaults to the PEAR standard) via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Display a list of installed coding standards via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs -i`" } ]
[ { "from": "human", "value": "Specify a coding standard to validate against via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs {{path/to/directory}} --standard {{standard}}`" } ]
[ { "from": "human", "value": "Specify comma-separated file extensions to include when sniffing via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs {{path/to/directory}} --extensions {{file_extension1,file_extension2,...}}`" } ]
[ { "from": "human", "value": "Specify the format of the output report (e.g. `full`, `xml`, `json`, `summary`) via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs {{path/to/directory}} --report {{format}}`" } ]
[ { "from": "human", "value": "Set configuration variables to be used during the process via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs {{path/to/directory}} --config-set {{key}} {{value}}`" } ]
[ { "from": "human", "value": "A comma-separated list of files to load before processing via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...}}`" } ]
[ { "from": "human", "value": "Don't recurse into subdirectories via the `phpcs` command" }, { "from": "gpt", "value": "`phpcs {{path/to/directory}} -l`" } ]
[ { "from": "human", "value": "Tell me about `phpdox`." }, { "from": "gpt", "value": "A PHP documentation generator.\nMore information: <https://phpdox.net>.\n" } ]
[ { "from": "human", "value": "Display an annotated skeleton configuration XML file via the `phpdox` command" }, { "from": "gpt", "value": "`phpdox --skel`" } ]
[ { "from": "human", "value": "Generate documentation for the current working directory via the `phpdox` command" }, { "from": "gpt", "value": "`phpdox`" } ]
[ { "from": "human", "value": "Generate documentation using a specific configuration file via the `phpdox` command" }, { "from": "gpt", "value": "`phpdox --file {{path/to/phpdox.xml}}`" } ]
[ { "from": "human", "value": "Only run the metadata collection process via the `phpdox` command" }, { "from": "gpt", "value": "`phpdox --collector`" } ]
[ { "from": "human", "value": "Only run the documentation generator process via the `phpdox` command" }, { "from": "gpt", "value": "`phpdox --generator`" } ]
[ { "from": "human", "value": "Tell me about `phpenv`." }, { "from": "gpt", "value": "A PHP version manager for development purposes.\nMore information: <https://github.com/phpenv/phpenv>.\n" } ]
[ { "from": "human", "value": "Install a PHP version globally via the `phpenv` command" }, { "from": "gpt", "value": "`phpenv install {{version}}`" } ]
[ { "from": "human", "value": "Refresh shim files for all PHP binaries known to `phpenv` via the `phpenv` command" }, { "from": "gpt", "value": "`phpenv rehash`" } ]
[ { "from": "human", "value": "List all installed PHP versions via the `phpenv` command" }, { "from": "gpt", "value": "`phpenv versions`" } ]
[ { "from": "human", "value": "Display the currently active PHP version via the `phpenv` command" }, { "from": "gpt", "value": "`phpenv version`" } ]
[ { "from": "human", "value": "Set the global PHP version via the `phpenv` command" }, { "from": "gpt", "value": "`phpenv global {{version}}`" } ]
[ { "from": "human", "value": "Set the local PHP version, which overrides the global version via the `phpenv` command" }, { "from": "gpt", "value": "`phpenv local {{version}}`" } ]
[ { "from": "human", "value": "Unset the local PHP version via the `phpenv` command" }, { "from": "gpt", "value": "`phpenv local --unset`" } ]
[ { "from": "human", "value": "Tell me about `phpize`." }, { "from": "gpt", "value": "Prepare a PHP extension for compiling.\nMore information: <https://www.php.net/manual/install.pecl.phpize>.\n" } ]
[ { "from": "human", "value": "Prepare the PHP extension in the current directory for compiling via the `phpize` command" }, { "from": "gpt", "value": "`phpize`" } ]
[ { "from": "human", "value": "Delete files previously created by phpize via the `phpize` command" }, { "from": "gpt", "value": "`phpize --clean`" } ]
[ { "from": "human", "value": "Tell me about `phploc`." }, { "from": "gpt", "value": "Quickly measure the size and analyzing the structure of a PHP project.\nMore information: <https://github.com/sebastianbergmann/phploc>.\n" } ]
[ { "from": "human", "value": "Analyze a directory and print the result via the `phploc` command" }, { "from": "gpt", "value": "`phploc {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Include only specific files from a comma-separated list (globs are allowed) via the `phploc` command" }, { "from": "gpt", "value": "`phploc {{path/to/directory}} --names '{{path/to/file1,path/to/file2,...}}'`" } ]
[ { "from": "human", "value": "Exclude specific files from a comma-separated list (globs are allowed) via the `phploc` command" }, { "from": "gpt", "value": "`phploc {{path/to/directory}} --names-exclude '{{path/to/file1,path/to/file2,...}}'`" } ]
[ { "from": "human", "value": "Exclude a specific directory from analysis via the `phploc` command" }, { "from": "gpt", "value": "`phploc {{path/to/directory}} --exclude {{path/to/exclude_directory}}`" } ]
[ { "from": "human", "value": "Log the results to a specific CSV file via the `phploc` command" }, { "from": "gpt", "value": "`phploc {{path/to/directory}} --log-csv {{path/to/file}}`" } ]
[ { "from": "human", "value": "Log the results to a specific XML file via the `phploc` command" }, { "from": "gpt", "value": "`phploc {{path/to/directory}} --log-xml {{path/to/file}}`" } ]
[ { "from": "human", "value": "Count PHPUnit test case classes and test methods via the `phploc` command" }, { "from": "gpt", "value": "`phploc {{path/to/directory}} --count-tests`" } ]
[ { "from": "human", "value": "Tell me about `php`." }, { "from": "gpt", "value": "PHP command-line interface.\nMore information: <https://php.net>.\n" } ]
[ { "from": "human", "value": "Parse and execute a PHP script via the `php` command" }, { "from": "gpt", "value": "`php {{path/to/file}}`" } ]
[ { "from": "human", "value": "Check syntax on (i.e. lint) a PHP script via the `php` command" }, { "from": "gpt", "value": "`php -l {{path/to/file}}`" } ]
[ { "from": "human", "value": "Run PHP interactively via the `php` command" }, { "from": "gpt", "value": "`php -a`" } ]
[ { "from": "human", "value": "Run PHP code (Notes: Don't use <? ?> tags; escape double quotes with backslash) via the `php` command" }, { "from": "gpt", "value": "`php -r \"{{code}}\"`" } ]
[ { "from": "human", "value": "Start a PHP built-in web server in the current directory via the `php` command" }, { "from": "gpt", "value": "`php -S {{host:port}}`" } ]
[ { "from": "human", "value": "List installed PHP extensions via the `php` command" }, { "from": "gpt", "value": "`php -m`" } ]
[ { "from": "human", "value": "Display information about the current PHP configuration via the `php` command" }, { "from": "gpt", "value": "`php -i`" } ]
[ { "from": "human", "value": "Display information about a specific function via the `php` command" }, { "from": "gpt", "value": "`php --rf {{function_name}}`" } ]
[ { "from": "human", "value": "Tell me about `phpmd`." }, { "from": "gpt", "value": "PHP mess detector: check for common potential problems.\nMore information: <https://github.com/phpmd/phpmd>.\n" } ]
[ { "from": "human", "value": "Display a list of available rulesets and formats via the `phpmd` command" }, { "from": "gpt", "value": "`phpmd`" } ]
[ { "from": "human", "value": "Scan a file or directory for problems using comma-separated rulesets via the `phpmd` command" }, { "from": "gpt", "value": "`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}}`" } ]
[ { "from": "human", "value": "Specify the minimum priority threshold for rules via the `phpmd` command" }, { "from": "gpt", "value": "`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --minimumpriority {{priority}}`" } ]
[ { "from": "human", "value": "Include only the specified extensions in analysis via the `phpmd` command" }, { "from": "gpt", "value": "`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --suffixes {{extensions}}`" } ]
[ { "from": "human", "value": "Exclude the specified comma-separated directories via the `phpmd` command" }, { "from": "gpt", "value": "`phpmd {{path/to/file_or_directory1,path/to/file_or_directory2,...}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --exclude {{directory_patterns}}`" } ]
[ { "from": "human", "value": "Output the results to a file instead of `stdout` via the `phpmd` command" }, { "from": "gpt", "value": "`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --reportfile {{path/to/report_file}}`" } ]
[ { "from": "human", "value": "Ignore the use of warning-suppressive PHPDoc comments via the `phpmd` command" }, { "from": "gpt", "value": "`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{ruleset1,ruleset2,...}} --strict`" } ]
[ { "from": "human", "value": "Tell me about `phpspec`." }, { "from": "gpt", "value": "A Behaviour Driven Development tool for PHP.\nMore information: <https://phpspec.net>.\n" } ]
[ { "from": "human", "value": "Create a specification for a class via the `phpspec` command" }, { "from": "gpt", "value": "`phpspec describe {{class_name}}`" } ]
[ { "from": "human", "value": "Run all specifications in the \"spec\" directory via the `phpspec` command" }, { "from": "gpt", "value": "`phpspec run`" } ]
[ { "from": "human", "value": "Run a single specification via the `phpspec` command" }, { "from": "gpt", "value": "`phpspec run {{path/to/class_specification_file}}`" } ]
[ { "from": "human", "value": "Run specifications using a specific configuration file via the `phpspec` command" }, { "from": "gpt", "value": "`phpspec run -c {{path/to/configuration_file}}`" } ]
[ { "from": "human", "value": "Run specifications using a specific bootstrap file via the `phpspec` command" }, { "from": "gpt", "value": "`phpspec run -b {{path/to/bootstrap_file}}`" } ]
[ { "from": "human", "value": "Disable code generation prompts via the `phpspec` command" }, { "from": "gpt", "value": "`phpspec run --no-code-generation`" } ]
[ { "from": "human", "value": "Enable fake return values via the `phpspec` command" }, { "from": "gpt", "value": "`phpspec run --fake`" } ]
[ { "from": "human", "value": "Tell me about `phpstan`." }, { "from": "gpt", "value": "A PHP static analysis tool to discover bugs in code.\nMore information: <https://phpstan.org/user-guide/command-line-usage>.\n" } ]