{"id":15150762,"url":"https://github.com/frc/wp-assets","last_synced_at":"2026-02-16T01:01:47.432Z","repository":{"id":62507143,"uuid":"231400634","full_name":"frc/wp-assets","owner":"frc","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-17T10:39:20.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-17T23:44:00.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/frc.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":"2020-01-02T14:42:43.000Z","updated_at":"2020-05-04T08:34:53.000Z","dependencies_parsed_at":"2024-09-02T15:21:45.845Z","dependency_job_id":"92a10fea-a73d-4f13-abd6-adf05464eee8","html_url":"https://github.com/frc/wp-assets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frc/wp-assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frc","download_url":"https://codeload.github.com/frc/wp-assets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-assets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29496942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T00:16:34.147Z","status":"ssl_error","status_checked_at":"2026-02-16T00:15:26.759Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-09-26T14:41:44.846Z","updated_at":"2026-02-16T01:01:47.391Z","avatar_url":"https://github.com/frc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Assets\n\nThis is a must-use plugin used via composer, plugin activation not required.\n\n## Usage\n\nCall function `frc_asset($file)`. For example: \n\n`wp_enqueue_style('styles', frc_asset('styles/main.css'));`\n\nAvailable methods: \n* `frc_asset($file)-\u003euri()`\n* `frc_asset($file)-\u003epath()`\n* `frc_asset($file)-\u003eexists()`\n* `frc_asset($file)-\u003enotExists()`\n* `frc_asset($file)-\u003econtents()`\n\nCasting `frc_asset($file)` to a string will return asset's URI.  \n\nOptional configuration using `add_theme_support` function.\n\n```php\nadd_theme_support('frc-assets', [\n    'root' =\u003e 'asset', // Root folder name for distributed assets\n    'file' =\u003e 'assets.json', // Assetmanifest's file name\n    'path' =\u003e get_theme_file_path('\u003croot\u003e'), // Full path to root folder\n    'uri' =\u003e get_theme_file_uri(\"\u003croo\u003e\"), // Full URI to root folder\n    'manifest' =\u003e '\u003cpath\u003e/\u003cfile\u003e', // Full path to manifest file\n    'addHashToFilename' =\u003e false, // If using laravel mix you can opt to use the hash from query string in filename and get better caching from cdn's and nginx\n]);\n```\n\nIf using 'addHashToFilename' the manifest file should be in the following format with hash length of 20.\n```\n{\n    \"/scripts/main.js\": \"/scripts/main.js?id=a91004e635bd357e16e6\"\n}\n```\n\nAnd you should have the following in you nginx.conf this strips the added \"hash.a91004e635bd357e16e6\" from the filename when a request is made\n\n```\nlocation ~ \"^(.+)(hash\\.[0-9a-f]{20})\\.(js|css|ttf|eot|woff2?|png|jpe?g|gif|svg|ico)$\" {\n    add_header Cache-Control \"public\";\n    expires 10y;\n    try_files $uri $1$3 =404;\n    access_log off;\n}\n```\nall of these work..  \n/GET /scripts/main.hash.a91004e635bd357e16e6.js =\u003e /scripts/main.js  \n/GET /scripts/main.a91004e635bd357e16e6.js =\u003e /scripts/main.a91004e635bd357e16e6.js  \n/GET /scripts/main.hash.js =\u003e /scripts/main.hash.js  \n/GET /scripts/main.js =\u003e /scripts/main.js \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrc%2Fwp-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-assets/lists"}