Download the PHP package richardowen/url-shortener without Composer
On this page you can find all versions of the php package richardowen/url-shortener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download richardowen/url-shortener
More information about richardowen/url-shortener
Files in richardowen/url-shortener
Download richardowen/url-shortener
More information about richardowen/url-shortener
Files in richardowen/url-shortener
Vendor richardowen
Package url-shortener
Short Description A comprehensive URL shortener library with analytics and multiple storage backends
License MIT
Homepage https://github.com/richardowen/url-shortener
Package url-shortener
Short Description A comprehensive URL shortener library with analytics and multiple storage backends
License MIT
Homepage https://github.com/richardowen/url-shortener
Please rate this library. Is it a good library?
Informations about the package url-shortener
URL Shortener PHP Library
A comprehensive, well-structured PHP library for URL shortening with analytics tracking and multiple storage backends.
Features
- URL Shortening & Expansion: Convert long URLs to short codes and vice versa
- Analytics Tracking: Track clicks, referrers, user agents, and timestamps
- Multiple Storage Backends: Memory, File, and Database storage options
- Flexible Code Generation: Custom strategies for generating short codes
- PSR Compliance: Follows PSR-4 autoloading and PSR-12 coding standards
- Dependency Injection: Clean architecture with SOLID principles
- Extensible Design: Easy to add new storage backends and features
Installation
Via Composer (Recommended)
Alternative Installation Methods
From GitHub (Development Version)
Specific Version
Requirements
- PHP: 8.0 or higher
- Composer: For dependency management
- Extensions:
json,pdo(for database storage)
Verify Installation
After installation, create a test file to verify everything works:
Run the test:
Quick Start
Storage Backends
File Storage
Memory Storage (for testing)
Database Storage
Code Generators
Random Code Generator
Custom Code Generator
Analytics
Track and retrieve analytics for shortened URLs:
Architecture
The library follows SOLID principles and uses dependency injection:
- Single Responsibility: Each class has one clear purpose
- Open/Closed: Easy to extend with new storage backends and generators
- Liskov Substitution: All implementations are interchangeable
- Interface Segregation: Clean, focused interfaces
- Dependency Inversion: Depends on abstractions, not concretions
Getting Help
Documentation
- 📖 Complete Installation Guide
- 🏗️ Architecture Overview
- 💡 Examples Directory
Quick Links
Common Use Cases
Marketing Campaign Tracking
Temporary Links
Social Media Sharing
Development
Running Tests
Code Quality
Requirements
- PHP 8.0 or higher
- PSR-4 autoloader support
- Extensions:
json,pdo(for database storage)
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
License
MIT License - see LICENSE file for details.
All versions of url-shortener with dependencies
PHP Build Version
Package Version
The package richardowen/url-shortener contains the following files
Loading the files please wait ...