mohamedhabibwork/laravel-oci-driver
Composer 安装命令:
composer require mohamedhabibwork/laravel-oci-driver
包简介
This is my package laravel-oci-driver
README 文档
README
🛠️ How to Install
composer require mohamedhabibwork/laravel-oci-driver
🚀 Implemented Features
-
Artisan Commands:
oci:setup– Create Oracle-compatible.ocifolder, generate/copy key files, write configoci:config– Interactive configuration for OCI settings, with--validateto check configoci:connection– Manage multiple OCI connections:list,test,switch,summaryoci:status– Check connection status, test file operations, and list files in a bucket
-
Key Providers:
- File-based (from file path)
- Environment-based (from env variable, supports base64)
- Custom providers via interface
-
Enums:
ConnectionType(primary, secondary, backup, development, testing, staging, production, archive)StorageTier(Standard, InfrequentAccess, Archive)LogLevel(emergency, alert, critical, error, warning, notice, info, debug)
-
Exception Handling:
PrivateKeyFileNotFoundExceptionSignerValidateExceptionSigningValidationFailedException
-
Configuration:
- All required OCI config: tenancy, user, fingerprint, key path, region, namespace, bucket, storage tier
- Optional: prefix, url, passphrase, advanced performance/cache options, debug/logging
-
Integration:
- Laravel filesystem disk driver (
oci) - Event system for file operations (upload, download, delete, etc.)
- Service provider auto-registers everything
- Health check and connection validation built-in
- Laravel filesystem disk driver (
⚡ Quick Start
use Illuminate\Support\Facades\Storage; // Upload a file Storage::disk('oci')->put('documents/hello.txt', 'Hello, Oracle Cloud!'); // Download a file $content = Storage::disk('oci')->get('documents/hello.txt'); // List files $files = Storage::disk('oci')->files('documents');
📚 Documentation
- Configuration Guide — All config options, environment variables, and best practices
- Authentication Setup — Key management, provider types, and security notes
- Usage Examples — Real-world code snippets for common tasks
- Testing Guide — How to test, recommended tools, and sample tests
- Performance Guide — Tuning, caching, and large file strategies
- Security Guide — Best practices, secrets management, and compliance
- Advanced Features — Bulk ops, events, custom providers, and more
- Migration Guide — Migrate from S3, GCS, or local storage
- Deployment Guide — Production deployment strategies
- Troubleshooting Guide — Common issues and solutions
- API Reference — Full method signatures and options
📝 API Reference
See the API_REFERENCE.md for full method signatures, options, and advanced usage. For configuration, authentication, and advanced features, see the relevant guides above.
🧪 Testing
composer test
See the Testing Guide for more details and examples.
🔧 Troubleshooting
- Use
php artisan oci:config --validateto check your configuration - Ensure your OCI credentials and key files are correct
- Check file permissions for private keys
- See TROUBLESHOOTING.md for more help
🤝 Contributing
See CONTRIBUTING.md for guidelines.
📞 Support
📄 License
The MIT License (MIT). See LICENSE.md for details.
🗺️ Roadmap
- Advanced Health Checks (Spatie Health integration)
- Connection Pooling and advanced parallel/multipart upload support
- Custom Event Listeners for all storage operations
- Improved Error Reporting and user-friendly CLI output
- Web UI for Connection Management
- More Key Providers (e.g., HashiCorp Vault, AWS Secrets Manager)
- Automatic Key Rotation
- Enhanced Documentation & Examples
- Support for Additional OCI Services (beyond Object Storage)
- Performance Benchmarks and Tuning Guides
👥 Credits
- Mohamed Habib - Creator & Lead Developer
- All Contributors
Made with ❤️ for the Laravel community
⭐ Star us on GitHub | 📚 Documentation | 🐛 Report Bug | 💡 Request Feature
mohamedhabibwork/laravel-oci-driver 适用场景与选型建议
mohamedhabibwork/laravel-oci-driver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 791 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 05 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Mohamed Habib」 「laravel-oci-driver」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mohamedhabibwork/laravel-oci-driver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mohamedhabibwork/laravel-oci-driver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mohamedhabibwork/laravel-oci-driver 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This field give the ability to hide fields from your resources table on mobile screens for a better responsive concept
A wrapper package over spatie query builder package to simplify filters creation for Laravel Apps
Alfabank REST API integration
Scan Laravel project files and append missing translation keys to JSON locale files
A Media Model for laravel medialibrary
A package to write to the .env file.
统计信息
- 总下载量: 791
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-06