{"id":24395172,"url":"https://github.com/ehsannarmani/gradle-mirror-php","last_synced_at":"2025-04-11T15:02:23.873Z","repository":{"id":269328062,"uuid":"907050194","full_name":"ehsannarmani/gradle-mirror-php","owner":"ehsannarmani","description":"A mirror that has been developed to download gradle dependencies without network interference and sanctions","archived":false,"fork":false,"pushed_at":"2024-12-24T05:43:00.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T11:04:15.952Z","etag":null,"topics":["android","android-dependency","android-studio","dependency-mirror","gradle","gradle-dependency","gradle-mirror","mirror","mirrored-repository"],"latest_commit_sha":null,"homepage":"https://en-mirror.ir","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehsannarmani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-22T17:09:11.000Z","updated_at":"2025-02-08T19:06:08.000Z","dependencies_parsed_at":"2024-12-24T06:29:00.295Z","dependency_job_id":null,"html_url":"https://github.com/ehsannarmani/gradle-mirror-php","commit_stats":null,"previous_names":["ehsannarmani/gradle-mirror","ehsannarmani/gradle-mirror-php"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsannarmani%2Fgradle-mirror-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehsannarmani","download_url":"https://codeload.github.com/ehsannarmani/gradle-mirror-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248428640,"owners_count":21101774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-dependency","android-studio","dependency-mirror","gradle","gradle-dependency","gradle-mirror","mirror","mirrored-repository"],"created_at":"2025-01-19T20:26:19.829Z","updated_at":"2025-04-11T15:02:23.836Z","avatar_url":"https://github.com/ehsannarmani.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Gradle Mirror By PHP\n\n#### This mirror developed to download gradle dependencies without network interference and sanctions\n\n### Usage:\n\nSimply add the mirror url as a maven repository in the `settings.gradle` file and re-sync project:\n\n```kotlin\npluginManagement {\n    repositories {\n        maven(\"https://en-mirror.ir\")\n    }\n}\ndependencyResolutionManagement {\n    ...\n    repositories {\n        maven(\"https://en-mirror.ir\")\n    }\n}\n```\n\u003e [!NOTE]\n\u003e Clone of mirror is launched at `en-mirror.ir` and ready to use. this mirror contains `google`,`central` and `jitpack` mavens.\n### Repository Filtering\nBy default, all repositories are mirrored. To mirror only a specific repository, include its key in the mirror URL, like this:\n```kotlin\nmaven(\"https://en-mirror.ir/jitpack\")\n```\n\n### Code Document:\nConfigure your mirror `config.php`:\n```php\n$config = [\n  'cache_folder'=\u003e'cache',\n  'cache_dependencies'=\u003etrue,\n  'repositories'=\u003e [\n      \"google\"=\u003e\"https://dl.google.com/dl/android/maven2\",\n      \"central\"=\u003e\"https://repo.maven.apache.org/maven2\",\n      \"jitpack\"=\u003e\"https://jitpack.io\"\n  ]\n]\n```\n`cache_dependencies`: This mirror have a feature to cache dependencies in server, so if you want to enable/disable that you need to change `cache_dependencies` property in config array.\u003cbr/\u003e\n`cache_folder`: You can specify the cache folder name with this property.\u003cbr/\u003e\n`repositories`: You can put or remove repositories which you want to get mirrored here (keys are optional and will be used for repository filtering in mirror url)\n\n### Code Usage:\nTo self-host the mirror on your own server, start the PHP server, and the source path in public_html will serve as your mirror URL.\n\u003e [!NOTE]\n\u003e The mirror URL will be the address of the source root on your server. For example, if you clone the source in the `x` folder, the URL will be: `https://your-domain.com/x`\n\n\n\u003e [!NOTE]\n\u003e You can set up mirror with cloudflare worker tho, [see](https://github.com/ehsannarmani/gradle-mirror-cloudflare-worker).\n\n\n\u003cbr/\u003e\n\u003chr/\u003e\n\n#### این میرور جهت دانلود دیپندنسی ها و وابستگی های گریدل بدون تداخلات اینترنتی و تحریم ها توسعه داده شده است.\n\n### نحوه استفاده:\n\nبه سادگی تنها آدرس میرور خودتان را در فایل `settings.gradle` به عنوان maven اضافه کنید:\n\n```kotlin\npluginManagement {\n    repositories {\n        maven(\"https://en-mirror.ir\")\n    }\n}\ndependencyResolutionManagement {\n    ...\n    repositories {\n        maven(\"https://en-mirror.ir\")\n    }\n}\n```\n\n### فیلترکردن مخزن ها\nاین میرور بصورت پیشفرض تمامی مخزن های قرارداده شده در فایل کانفیگ را شامل خواهد شد، برای میرور کردن فقط یک مخزن خاص کافی است کلید آن را در انتهای آدرس میرور قرار دهید و پروژه خود را سینک کنید:\n```kotlin\nmaven(\"https://en-mirror.ir/jitpack\")\n```\n\n### توضیحات کد:\nجهت کانفیگ میرور از طریق فایل `config.php` اقدام کنید:\n```php\n$config = [\n  'cache_folder'=\u003e'cache',\n  'cache_dependencies'=\u003etrue,\n  'repositories'=\u003e [\n      \"google\"=\u003e\"https://dl.google.com/dl/android/maven2\",\n      \"central\"=\u003e\"https://repo.maven.apache.org/maven2\",\n      \"jitpack\"=\u003e\"https://jitpack.io\"\n  ]\n]\n```\n`cache_dependencies`: این میرور امکان کش کردن دیپندنسی هارا دارد، برای تعیین آن این مقدار را تغییر دهید.\u003cbr/\u003e\n`cache_folder`: با این مقدار میتوانید پوشه کش دیپدنسی هارا تعیین کنید\u003cbr/\u003e\n`repositories`: در این پراپرتی مخازنی که میخواهید میرور شوند را بگذارید یا اگر قصد میرور مخزنی رو ندارید از اینجا حذف کنید. (کلید ها دلخواه هستند و در فیلتر کردن میرور مخزن ها استفاده میشوند)\n\n### استفاده از سورس کد:\nبرای اجرای این میرور در سرور شخصی خودتان یک php server استارت کنید و سورس کد را داخل مسیر public_html قرار دهید، آیپی سرور یا دامنه متصل شده به آن، آدرس میرور شما خواهد بود.\n\u003e [!NOTE]\n\u003e آدرس میرور، آدرس مسیر روت سورس کد در سرور شما خواهد بود، برای مثال اگر سورس کد را داخل پوشه x قرار دهید، آدرس میرور `https://your-domain.com/x` خواهد بود.\n\n\u003e [!NOTE]\n\u003e همچنین میتوانید با استفاده از ورکر های کلادفلر میرور خود را راه اندازی کنید، [اینجا](https://github.com/ehsannarmani/gradle-mirror-cloudflare-worker) را ببینید. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsannarmani%2Fgradle-mirror-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehsannarmani%2Fgradle-mirror-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsannarmani%2Fgradle-mirror-php/lists"}