Download the PHP package laravelgpt/country-code without Composer
On this page you can find all versions of the php package laravelgpt/country-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravelgpt/country-code
More information about laravelgpt/country-code
Files in laravelgpt/country-code
Package country-code
Short Description A comprehensive Laravel package for country codes, phone codes, ISO codes, flags, and regional data with multi-framework frontend support
License MIT
Informations about the package country-code
LaravelGPT Country Code Package
A comprehensive Laravel package for country codes, phone codes, ISO codes, flags, and regional data with multi-framework frontend support.
๐ Features
Core Features
- 200+ Countries with complete information
- Phone codes and international dialing formats
- ISO 3166-1 alpha-2 and alpha-3 codes
- Unicode flag emojis and SVG flag support
- Continental and regional groupings
- UN membership and independence status
- Currency information and timezone data
- Population and geographic data
Frontend Framework Support
- Blade Components (Default - No additional dependencies)
- Livewire Components (Requires
livewire/livewire) - Vue.js Components (Requires
vuenpm package) - React Components (Requires
reactnpm package) - Alpine.js Components (Requires
alpinejsnpm package)
Advanced Features
- Interactive Country Maps with Leaflet.js
- Advanced Search with filters and autocomplete
- Statistics Dashboard with charts and exports
- Multi-language Support (12+ languages)
- API Rate Limiting and caching
- Regional Groupings (EU, G7, G20, ASEAN, etc.)
- Phone Number Validation and formatting
- Export Functionality (JSON, CSV, PDF)
๐ Requirements
PHP Requirements
- PHP: 8.2 or higher
- Laravel: 10.x or 11.x
Frontend Dependencies
The package includes a package.json file with recommended frontend dependencies:
๐ Quick Installation
Basic Installation (Blade Only)
Interactive Installation with Frontend Selection
Installation with Specific Frontend Framework
Advanced Installation Options
๐ Manual Setup
1. Publish Configuration
2. Publish Migrations
3. Run Migrations
4. Seed Database
5. Publish Frontend Assets
๐จ Frontend Framework Usage
Blade Components (No Dependencies Required)
Livewire Components (Requires livewire/livewire)
Vue.js Components (Requires vue npm package)
React Components
Alpine.js Components
๐ง Backend Usage
Using the Facade
Using the Model
Validation Rule
API Endpoints
โ๏ธ Configuration
Environment Variables
Configuration File
The package configuration file (config/country-code.php) contains comprehensive settings for:
- Default country
- Supported languages
- Cache configuration
- API settings
- Frontend framework configuration
- Regional groupings
- Phone number configuration
- Flag configuration
- Database settings
- Security settings
- Logging configuration
- Performance optimization
- Customization paths
- Development settings
๐ ๏ธ Available Commands
Installation Commands
Setup Commands
Asset Commands
Database Commands
๐ Statistics and Analytics
Built-in Statistics
- Total countries count
- Countries by continent
- Countries by region
- Phone code distribution
- Regional groupings
- Export functionality (JSON, CSV, PDF)
Custom Analytics
๐ Security Features
Rate Limiting
- Configurable API rate limiting
- Per-user and per-IP limits
- Customizable decay periods
CORS Support
- Configurable CORS settings
- Allowed origins, methods, and headers
- Secure by default
Authentication
- Optional authentication requirements
- Configurable guards and middleware
- Role-based access control
๐ Performance Optimization
Caching
- Intelligent caching system
- Configurable TTL and prefixes
- Cache invalidation strategies
Database Optimization
- Eager loading support
- Query optimization
- Database indexes
- Pagination support
Asset Optimization
- Minified JavaScript and CSS
- Optimized component loading
- Tree-shaking support
๐งช Testing
Running Tests
Test Examples
๐ Examples and Documentation
Example Files
After installation, example files are created in:
resources/views/examples/country-code/blade-example.blade.phpresources/views/examples/country-code/livewire-example.blade.phpresources/js/examples/vue-example.jsresources/js/examples/react-example.jsxresources/views/examples/country-code/alpine-example.blade.php
Documentation
๐ค Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
๐ License
This package is open-sourced software licensed under the MIT License.
๐ Support
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
๐ฏ Roadmap
Upcoming Features
- [ ] GeoJSON country boundaries
- [ ] Advanced mapping features
- [ ] Real-time data updates
- [ ] Mobile app support
- [ ] GraphQL API
- [ ] Machine learning integration
- [ ] Advanced analytics dashboard
- [ ] Multi-tenant support
- [ ] API versioning
- [ ] Webhook support
Version History
- v2.0.0: Multi-framework support, interactive maps, advanced statistics
- v1.0.0: Initial release with basic functionality
Made with โค๏ธ by the LaravelGPT Team
All versions of country-code with dependencies
laravel/framework Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0
livewire/livewire Version ^3.0