diff --git a/CHANGELOG.md b/CHANGELOG.md index 92c0f1d..e693749 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to Makhzan are documented here. +## Unreleased + +### Docs +- Refreshed the package description (composer.json + GitHub) and the README (EN + AR) feature overview so the public face reflects everything through v0.6.0: routing rules, temporary URLs, integrity verification, lifecycle commands and replication. + ## v0.6.0 - 2026-12-03 ### Added diff --git a/README.md b/README.md index 1f0fdf4..4d4fdb7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Makhzan (مخزن) -**Organize your Laravel app's storage spaces.** Register every storage space your site uses — local disks, Cloudflare R2, Backblaze B2, any S3-compatible bucket, Google Drive, Telegram — behind one content-addressed store with per-space priorities, usage visibility, live health checks, automatic failover, capacity warnings, mirroring and safe background drains. +**Organize your Laravel app's storage spaces.** Register every storage space your site uses — local disks, Cloudflare R2, Backblaze B2, any S3-compatible bucket, Google Drive, Telegram — behind one content-addressed store with per-space priorities, category routing rules, usage visibility, live health checks, automatic failover, capacity warnings, mirroring, safe background drains, bulk replication, temporary URLs, integrity verification and a full file lifecycle (delete, restore, prune, garbage collection). [التوثيق بالعربية](docs/ar/README.md) @@ -15,8 +15,11 @@ A growing site rarely has one disk. It has a free R2 bucket, a B2 bucket for ove - **Health checks** — a live write/read/delete round trip per space, on demand or scheduled; a space only serves files after passing on its *current* credentials. - **Automatic failover** — if a write fails, Makhzan tries the next candidate and tells you (event). Reads fail over across a file's copies. - **Capacity warnings** — an event the moment a space crosses the warning line (default 80%). -- **Mirroring & drains** — mirror every write to a second space, and empty a space into another in the background with a progress record. +- **Routing rules** — steer files to a space by category and size, with per-rule mirrors; anything unmatched follows the plain fill order. +- **Mirroring, drains & replication** — mirror every write to a second space, empty a space into another in the background with a progress record, or bulk-copy a space onto another with `php artisan makhzan:replicate`. - **Content addressing** — identical bytes are stored once (SHA-256 + size), copies are verified by hash. +- **Temporary URLs** — short-lived signed URLs from S3-family spaces, with graceful fallback across a file's copies. +- **Integrity & lifecycle** — `makhzan:verify` confirms every recorded copy still exists; delete/restore keeps files recoverable, `makhzan:prune` clears old soft deletes, `makhzan:gc` drops rows pointing at storage that no longer exists. ## Requirements diff --git a/composer.json b/composer.json index 5c54292..b747acb 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "elbanbydev/makhzan", - "description": "Makhzan (مخزن) - organize your Laravel app's storage spaces (local, S3-compatible like Cloudflare R2 and Backblaze B2, Google Drive, Telegram) behind one content-addressed store with per-space priorities, usage visibility, health checks, automatic failover, capacity warnings, mirroring and safe background drains. Experimental.", + "description": "Makhzan (مخزن) - organize your Laravel app's storage spaces (local, S3-compatible like Cloudflare R2 and Backblaze B2, Google Drive, Telegram) behind one content-addressed store with per-space priorities, category routing rules, usage visibility, health checks, automatic failover, capacity warnings, mirroring, safe background drains, bulk replication, temporary URLs, integrity verification and a full file lifecycle. Experimental.", "keywords": [ "laravel", "storage", diff --git a/docs/ar/README.md b/docs/ar/README.md index e9131ed..4003777 100644 --- a/docs/ar/README.md +++ b/docs/ar/README.md @@ -1,6 +1,6 @@ # مخزن (Makhzan) -**نظّم مساحات التخزين في موقعك.** سجّل كل مساحات التخزين التي يستخدمها موقعك — أقراص محلية، Cloudflare R2، Backblaze B2، أي Bucket متوافق مع S3، Google Drive، تليجرام — خلف مخزن واحد يعتمد بصمة المحتوى، مع أولويات لكل مساحة، ورؤية واضحة للاستخدام، وفحوصات صحية حية، وتحويل تلقائي عند الفشل، وتنبيهات امتلاء، ونسخ احتياطي (Mirror)، وتفريغ آمن في الخلفية. +**نظّم مساحات التخزين في موقعك.** سجّل كل مساحات التخزين التي يستخدمها موقعك — أقراص محلية، Cloudflare R2، Backblaze B2، أي Bucket متوافق مع S3، Google Drive، تليجرام — خلف مخزن واحد يعتمد بصمة المحتوى، مع أولويات لكل مساحة، وقواعد توجيه حسب التصنيف، ورؤية واضحة للاستخدام، وفحوصات صحية حية، وتحويل تلقائي عند الفشل، وتنبيهات امتلاء، ونسخ احتياطي (Mirror)، وتفريغ آمن في الخلفية، ونسخ جماعي بين المساحات، وروابط مؤقتة، وتحقق من سلامة النسخ، ودورة حياة كاملة للملفات (حذف، استعادة، تنظيف، جمع نفايات). > **الحالة:** تجريبية (قبل 1.0). قد تتغير الواجهة البرمجية بين الإصدارات الفرعية حتى الإصدار 1.0. @@ -13,8 +13,11 @@ - **فحوصات صحية** — تجربة حية (كتابة وقراءة وحذف) لكل مساحة، يدوياً أو مجدولة؛ لا تخدم المساحة الملفات إلا بعد نجاح الفحص على بياناتها الحالية. - **تحويل تلقائي** — إذا فشلت الكتابة يجرب مخزن المساحة التالية ويخطرك (حدث). القراءة تتحول تلقائياً بين نسخ الملف. - **تنبيهات الامتلاء** — حدث لحظة تجاوز المساحة خط التنبيه (افتراضياً 80%). -- **النسخ والتفريغ** — انسخ كل كتابة إلى مساحة ثانية، وفرّغ مساحة كاملة في أخرى بالخلفية مع سجل تقدم. +- **قواعد التوجيه** — وجّه الملفات لمساحة حسب التصنيف والحجم، مع نسخة احتياطية لكل قاعدة؛ ما لا يطابق قاعدة يتبع ترتيب التعبئة العادي. +- **النسخ والتفريغ والاستنساخ** — انسخ كل كتابة إلى مساحة ثانية، فرّغ مساحة كاملة في أخرى بالخلفية مع سجل تقدم، أو انسخ مساحة بأكملها إلى أخرى عبر `php artisan makhzan:replicate`. - **بصمة المحتوى** — المحتوى المتطابق يخزَّن مرة واحدة (SHA-256 + الحجم)، والنسخ تتحقق بالبصمة. +- **روابط مؤقتة** — روابط موقَّعة قصيرة العمر من مساحات عائلة S3، مع تراجع تلقائي بين نسخ الملف. +- **السلامة ودورة الحياة** — `makhzan:verify` يؤكد أن كل نسخة مسجلة ما زالت موجودة؛ الحذف والاستعادة يبقيان الملفات قابلة للاسترجاع، `makhzan:prune` ينظف المحذوفات المؤقتة القديمة، و`makhzan:gc` يزيل الصفوف التي تشير إلى تخزين لم يعد موجوداً. ## المتطلبات