承接 mohamedhabibwork/laravel-oci-driver 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mohamedhabibwork/laravel-oci-driver

Composer 安装命令:

composer require mohamedhabibwork/laravel-oci-driver

包简介

This is my package laravel-oci-driver

README 文档

README

Laravel OCI Driver

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads PHPStan Level

🛠️ How to Install

composer require mohamedhabibwork/laravel-oci-driver

🚀 Implemented Features

  • Artisan Commands:

    • oci:setup – Create Oracle-compatible .oci folder, generate/copy key files, write config
    • oci:config – Interactive configuration for OCI settings, with --validate to check config
    • oci:connection – Manage multiple OCI connections: list, test, switch, summary
    • oci: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:

    • PrivateKeyFileNotFoundException
    • SignerValidateException
    • SigningValidationFailedException
  • 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

⚡ 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

📝 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 --validate to 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

Made with ❤️ for the Laravel community

⭐ Star us on GitHub | 📚 Documentation | 🐛 Report Bug | 💡 Request Feature

统计信息

  • 总下载量: 791
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 675
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固