{"id":18648792,"url":"https://github.com/mitchmac/serverlesswp-node","last_synced_at":"2025-07-17T07:35:32.777Z","repository":{"id":183709879,"uuid":"670634965","full_name":"mitchmac/serverlesswp-node","owner":"mitchmac","description":"Node.js library to run PHP on Vercel, Netlify, or AWS Lambda","archived":false,"fork":false,"pushed_at":"2025-04-05T02:28:21.000Z","size":61292,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T02:33:30.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitchmac.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":"2023-07-25T13:43:08.000Z","updated_at":"2025-04-05T02:28:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"e53c4942-be07-4fef-a7ee-2c1f91ffd835","html_url":"https://github.com/mitchmac/serverlesswp-node","commit_stats":null,"previous_names":["mitchmac/serverlesswp-node"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchmac%2Fserverlesswp-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchmac%2Fserverlesswp-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchmac%2Fserverlesswp-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchmac%2Fserverlesswp-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchmac","download_url":"https://codeload.github.com/mitchmac/serverlesswp-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248419680,"owners_count":21100223,"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":[],"created_at":"2024-11-07T06:33:50.534Z","updated_at":"2025-04-11T14:31:14.984Z","avatar_url":"https://github.com/mitchmac.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ServerlessWP\nServerless PHP on AWS Lambda, Vercel or Netlify\n\nJust want to get started with WordPress?\n\nTry the [WordPress starter project](https://github.com/mitchmac/serverlesswp)!\n\n| Netlify | Vercel |\n| --- | --- |\n| [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/mitchmac/serverlesswp) |[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmitchmac%2Fserverlesswp) |\n\n\n## Overview\n\nThis is the library that powers ServerlessWP but it can also be used standalone to execute PHP in Lambda functions.\n\nServerlessWP includes PHP 8.1 with common extensions and libraries required by WordPress to run in the serverless function Node.js runtimes of Vercel and Netlify.\n\n## Usage\n```\nnpm i serverlesswp\n```\n\nThen in your project's function directory use the ServerlessWP library in a file like api/index.js:\n\n```javascript\nconst path = require('path');\nconst serverlesswp = require('serverlesswp');\n\nexports.handler = async function (event, context, callback) {\n    const pathToWP = path.join(process.cwd(), 'wp');\n\n    return await serverlesswp({docRoot: pathToWP, event: event});\n}\n```\n\nWhere\n\n* docRoot is the path to WordPress files\n* event is the serverless event data from Vercel or Netlify\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchmac%2Fserverlesswp-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchmac%2Fserverlesswp-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchmac%2Fserverlesswp-node/lists"}