Download the PHP package savepinner/pinterest-url-normalizer without Composer
On this page you can find all versions of the php package savepinner/pinterest-url-normalizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download savepinner/pinterest-url-normalizer
More information about savepinner/pinterest-url-normalizer
Files in savepinner/pinterest-url-normalizer
Package pinterest-url-normalizer
Short Description Parse, classify, and normalize Pinterest URLs without network requests.
License MIT
Homepage https://savepinner.com/
Informations about the package pinterest-url-normalizer
pinterest-url-normalizer
Parse, classify, and normalize Pinterest URLs without making network requests.
Packagist · npm · PyPI · crates.io
The package recognizes Pin, pin.it, profile, board, and Ideas URLs across Pinterest country domains. It uses an exact host allow list, rejects HTTP URLs and lookalike domains, and removes query parameters and fragments from normalized output.
The library returns a clean Pin URL but deliberately does not fetch media. A PHP application can pass that output to the Pinterest image downloader when the download handoff belongs in the browser.
Install
Library
CLI
Composer installs the pinterest-url-normalizer executable with the package.
Read one URL per line and emit JSON Lines:
The process exits with status 1 when any input is invalid and status 2 for CLI usage errors.
Supported URLs
| Kind | Example |
|---|---|
| Pin | https://www.pinterest.com/pin/123456789/ |
| Short | https://pin.it/AbC123 |
| Profile | https://www.pinterest.com/savepinner/ |
| Board | https://www.pinterest.com/savepinner/media-tools/ |
| Ideas | https://www.pinterest.com/ideas/space-wallpaper/926295399832/ |
pin.it links are classified and normalized but are not followed. Resolving them requires a network request and belongs in the consuming application.
License
MIT
All versions of pinterest-url-normalizer with dependencies
ext-json Version *