Download the PHP package awalhadi/addressable without Composer
On this page you can find all versions of the php package awalhadi/addressable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download awalhadi/addressable
More information about awalhadi/addressable
Files in awalhadi/addressable
Download awalhadi/addressable
More information about awalhadi/addressable
Files in awalhadi/addressable
Vendor awalhadi
Package addressable
Short Description A modern, feature-rich Laravel package for managing addresses with geocoding, validation, caching, and spatial operations. Perfect for e-commerce, CRM systems, and any application requiring robust address management.
License MIT
Package addressable
Short Description A modern, feature-rich Laravel package for managing addresses with geocoding, validation, caching, and spatial operations. Perfect for e-commerce, CRM systems, and any application requiring robust address management.
License MIT
Please rate this library. Is it a good library?
Informations about the package addressable
Laravel Addressable Package
A modern, feature-rich Laravel package for managing addresses with geocoding, validation, caching, and spatial operations. Perfect for e-commerce, CRM systems, and any application requiring robust address management.
β¨ Features
- π Polymorphic Relationships - Attach addresses to any model
- π Geocoding Support - Google Maps, OpenStreetMap, HERE APIs
- β Address Validation - Postal codes, phone numbers, email validation
- πΊοΈ Spatial Operations - Distance calculations, geofencing, bounding boxes
- β‘ Smart Caching - Multi-level caching for performance
- π Security Features - Data masking, GDPR compliance, encryption
- π Bulk Operations - Efficient mass address management
- π― Multiple Address Types - Home, work, billing, shipping addresses
- π± Mobile Optimized - Responsive design considerations
- π§ͺ Comprehensive Testing - 100% test coverage with Pest
π Requirements
- PHP: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4+
- Laravel: 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0+
- Database: MySQL 5.7+, PostgreSQL 10+, SQLite 3.8+
π Installation
1. Install via Composer
2. Publish Configuration (Optional)
3. Run Migrations
π― Quick Start
1. Add Trait to Your Model
2. Create Your First Address
3. Query Addresses
π API Reference
Address Model
Properties
Property | Type | Description |
---|---|---|
id |
UUID | Primary key |
addressable_type |
string | Polymorphic model class |
addressable_id |
UUID | Polymorphic model ID |
type |
string | Address type (home, work, billing, shipping) |
label |
string | Custom label |
given_name |
string | First name |
family_name |
string | Last name |
organization |
string | Company name |
phone |
string | Phone number |
email |
string | Email address |
street |
string | Street address |
street_2 |
string | Secondary address line |
city |
string | City |
state |
string | State/province |
postal_code |
string | Postal/ZIP code |
country_code |
string | ISO country code |
neighborhood |
string | Neighborhood |
district |
string | District |
latitude |
decimal | Latitude coordinate |
longitude |
decimal | Longitude coordinate |
is_primary |
boolean | Primary address flag |
is_billing |
boolean | Billing address flag |
is_shipping |
boolean | Shipping address flag |
is_verified |
boolean | Verification status |
metadata |
json | Additional data |
verified_at |
timestamp | Verification timestamp |
Accessors
Scopes
Addressable Trait
Methods
Spatial Operations
Address Validation
Geocoding
Caching
βοΈ Configuration
The package configuration file (config/addressable.php
) provides extensive customization options:
Database Configuration
Address Types
Geocoding
Validation
Caching
π§ Development
Prerequisites
- PHP 8.1+
- Composer
- Git
π€ Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
π License
This package is open-sourced software licensed under the MIT license.
π Support
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- Discussions: GitHub Discussions
π Acknowledgments
- Laravel team for the amazing framework
- Pest team for the testing framework
- All contributors who helped improve this package
Made with β€οΈ by the Laravel community
All versions of addressable with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0|^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
jackpopp/geodistance Version ^1.2.3
rinvex/countries Version ^8.1.1
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
jackpopp/geodistance Version ^1.2.3
rinvex/countries Version ^8.1.1
The package awalhadi/addressable contains the following files
Loading the files please wait ....