{"id":22153054,"url":"https://github.com/artsunique/wp-acorn-media-sync","last_synced_at":"2026-05-17T15:41:06.752Z","repository":{"id":263832552,"uuid":"891526487","full_name":"artsunique/wp-acorn-media-sync","owner":"artsunique","description":"A WP Acorn command to sync media files into the WordPress Media Library.","archived":false,"fork":false,"pushed_at":"2024-11-20T13:58:16.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T13:45:04.694Z","etag":null,"topics":["media","roots-io","sage10","wordpress","wp","wp-acorn"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artsunique.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-11-20T13:48:20.000Z","updated_at":"2024-11-20T13:59:36.000Z","dependencies_parsed_at":"2024-11-20T14:39:37.485Z","dependency_job_id":"384459c8-3321-4622-a41a-d26e8338ac86","html_url":"https://github.com/artsunique/wp-acorn-media-sync","commit_stats":null,"previous_names":["artsunique/wp-acorn-media-sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/artsunique/wp-acorn-media-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsunique%2Fwp-acorn-media-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsunique%2Fwp-acorn-media-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsunique%2Fwp-acorn-media-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsunique%2Fwp-acorn-media-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artsunique","download_url":"https://codeload.github.com/artsunique/wp-acorn-media-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artsunique%2Fwp-acorn-media-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254466,"owners_count":25956604,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["media","roots-io","sage10","wordpress","wp","wp-acorn"],"created_at":"2024-12-02T01:16:35.831Z","updated_at":"2025-10-04T02:07:26.805Z","avatar_url":"https://github.com/artsunique.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Acorn Command: Media Sync for WordPress\n# (Sage Roots.io)\n\nThe Media Sync Command is a customizable WP Acorn command designed for WordPress projects using the Sage Roots.io framework. It streamlines the process of synchronizing media files from the uploads directory directly into the WordPress Media Library. With an interactive CLI-based approach, developers gain precise control over media synchronization, avoiding the inefficiencies of manual imports.\n\n## Why Use the Media Sync Command?\nBy default, WordPress handles media uploads and synchronization through its admin interface, which can be time-consuming and lacks flexibility for developers managing files directly. The Media Sync Command addresses these issues by offering:\n- Direct Media Synchronization:\n  Add images, PDFs, videos, or other media directly to the WordPress Media Library from the filesystem.\n- Customizable Workflow:\n- Scan the entire uploads folder or a specific subdirectory, with options for dry-run simulations.\n- Developer-Friendly Integration:\n  Built for WP Acorn, it integrates seamlessly into Sage projects.\n- Interactive CLI:\n  Provides options for folder selection and file handling, ensuring an efficient workflow.\n\n## Why Use the Media Sync Command?\nBy default, WordPress handles media uploads and synchronization through its admin interface, which can be time-consuming and lacks flexibility for developers managing files directly. The Media Sync Command addresses these issues by offering:\n- Direct Media Synchronization:\n  Add images, PDFs, videos, or other media directly to the WordPress Media Library from the filesystem.\n- Customizable Workflow:\n  Scan the entire uploads folder or a specific subdirectory, with options for dry-run simulations.\n- Developer-Friendly Integration:\n  Built for WP Acorn, it integrates seamlessly into Sage projects.\n- Interactive CLI:\n  Provides options for folder selection and file handling, ensuring an efficient workflow.\n\n ## Key Features\n- Interactive Options:\n  Select whether to scan the entire uploads folder or a specific subfolder.\n  Enable or disable a “dry-run” mode to simulate synchronization without making changes.\n-\tSupports Multiple File Formats:\n  andles images (jpg, png, gif, webp), videos (mp4, mov, avi), PDFs, and SVGs.\n- Database Sync:\n  utomatically adds new files to the WordPress Media Library, skipping already-synced files.\n  Error Handling and Logs:\n-\tDisplays skipped files, successfully imported media, and any errors encountered.\n  Optimized for Developers:\n- Integrates natively into WP Acorn, providing a Laravel-like command interface.\n\n## Advantages\n- Efficient Media Management:\n  Eliminate the need for manual uploads via the WordPress admin interface.\n- Customizable Scans:\n  Choose specific directories or file types to sync, reducing unnecessary processing.\n- Integration with WordPress:\n  Automatically updates the WordPress database with proper attachment metadata.\n- Flexible CLI Options:\n  Run simulations, specify folders, and monitor progress directly from the command line.\n\n  Installation and Setup\n\n## Prerequisites\n- WordPress project using Sage Roots.io with WP Acorn installed.\n-\tPHP version 7.4 or higher.\n\n## Steps\n- Place the file at app/Console/Commands/MediaSyncCommand.php\n\n## Usage\n\nRun the Command:\n\n- Synchronize all media files: wp acorn media:sync\n- Dry-Run (No changes): wp acorn media:sync --dry-run\n- Scan a specific subfolder: wp acorn media:sync\n  Choose “Specify a subfolder” and enter the folder path (e.g., 2024/11).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartsunique%2Fwp-acorn-media-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartsunique%2Fwp-acorn-media-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartsunique%2Fwp-acorn-media-sync/lists"}