Download the PHP package zero-to-prod/validate-url-cli without Composer
On this page you can find all versions of the php package zero-to-prod/validate-url-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zero-to-prod/validate-url-cli
More information about zero-to-prod/validate-url-cli
Files in zero-to-prod/validate-url-cli
Package validate-url-cli
Short Description A CLI for Validating a Url.
License MIT
Homepage https://github.com/zero-to-prod/validate-url-cli
Informations about the package validate-url-cli
Zerotoprod\ValidateUrlCli
Contents
- Introduction
- Requirements
- Installation
- Documentation Publishing
- Automatic Documentation Publishing
- Usage
- Available Commands
validate-url-cli:srcvalidate-url-cli:validatevalidate-url-cli:show-regex
- Docker Image
- Local Development
- Image Development
- Contributing
Introduction
A CLI for Validating a Url.
Requirements
- PHP 8.1 or higher.
Installation
Install Zerotoprod\ValidateUrlCli via Composer:
This will add the package to your project's dependencies and create an autoloader entry for it.
Documentation Publishing
You can publish this README to your local documentation directory.
This can be useful for providing documentation for AI agents.
This can be done using the included script:
Automatic Documentation Publishing
You can automatically publish documentation by adding the following to your composer.json:
Usage
Run this command to see the available commands:
Available Commands
validate-url-cli:src
Display the project's GitHub repository URL.
Usage:
Arguments: None
Example:
Output:
validate-url-cli:validate
Validates a URL and returns the URL if valid, empty output otherwise.
Usage:
Arguments:
url(required): The URL to validate
Example:
Output (valid URL):
Example with invalid URL:
Output (invalid URL):
validate-url-cli:show-regex
Display the regular expression pattern used to validate URLs.
Usage:
Arguments: None
Example:
Output:
Docker Image
You can also run the cli using the docker image:
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
All versions of validate-url-cli with dependencies
ext-json Version *
symfony/console Version ^7.2
zero-to-prod/validate-url Version ^71.0
zero-to-prod/data-model Version ^81.9
zero-to-prod/package-helper Version ^1.1.3