# PHP to Motoko > Keep the service. Replace the PHP. Migration instructions and reference tools for rebuilding selected PHP services with a Motoko backend on the Internet Computer. Inventory the existing application, agree which capabilities to rebuild, replace or retain, then implement and validate the agreed scope. The default plan moves the frontend to ICP and rebuilds the required backend features in Motoko. A content-only site may need only an asset canister. External frontend hosting is an advanced architecture exception requiring integration work and testing. PHP to Motoko is a [DFINITY Foundation](https://dfinity.org/) service. ## Skill - Install with `npx skills add JoshDFN/php-to-motoko-skill`. - [GitHub repository](https://github.com/JoshDFN/php-to-motoko-skill): source, license and evaluation definitions. - [migrating-php-apps](/skills/migrating-php-apps/SKILL.md): the migration workflow, phases, rules and pitfalls. Read it before writing code. - [Download as zip](/skills/migrating-php-apps.zip): the skill folder, to add to a coding agent. - References: [inventory script](/skills/migrating-php-apps/references/inventory.md), [data import](/skills/migrating-php-apps/references/data-import.md), [backend example](/skills/migrating-php-apps/references/backend-example.md), [old URLs](/skills/migrating-php-apps/references/old-urls.md), [platform notes](/skills/migrating-php-apps/references/frameworks.md), [dynamic delivery](/skills/migrating-php-apps/references/delivery.md). Load only the references relevant to the application. ## Scope and responsibilities The target Motoko backend runs without a PHP runtime. This does not establish regulatory compliance or eliminate application vulnerabilities. Assess dependencies and integrations, authentication/authorization, data location/confidentiality, operating costs and recovery before approving production use. Preserve critical journeys through explicit mapping and validation; do not assume plugins, passwords or third-party integrations transfer automatically. Agree on handover evidence: scope and architecture, reconciled data and files, verified critical journeys, and source/build/deployment/operating instructions. Assign owners for monitoring, operating funding, upgrades and recovery. ## Load alongside - [ICP skills](https://skills.internetcomputer.org/llms.txt): writing-motoko, migrating-motoko-actors, mops-cli, icp-cli, static-site, internet-identity, canister-security, https-outcalls, custom-domains, cycles-management. ## Prompt for a coding agent Use the migrating-php-apps skill at https://www.phptomotoko.com/skills/migrating-php-apps/SKILL.md. Start with a read-only inventory of this PHP application. Plan this application on the Internet Computer, with the frontend on ICP and Motoko for the backend features it requires. For a content-only site, consider an asset canister without a custom backend. Map the features, data, access rules and integrations to preserve. Propose phases, acceptance checks, rollback, costs and open questions. Load relevant ICP guidance as needed. Do not modify the application or deploy until I approve the plan. ## Related site - [Move to Motoko](https://www.movetomotoko.com/) ## Website pages - [Why migrate](/why-migrate/) - [For your team](/for-teams/) - [The migration approach](/migration-approach/) - [Security advisories and sources](/sources/) - [Install the migration skill](/migration-skill/) - [Questions and answers](/questions/) - [Larkhaven migration example](/migration-example/): selected inventory, feature decisions and recorded checks from the fictional demo. ## Maintained security advisories - [Security advisories](/security-advisories/): dated primary disclosures, affected scope and mitigation guidance across the web stack. - [Advisory data](/security-advisories.json): the same maintained register in JSON. ## Feedback - [Report a skill issue](https://github.com/JoshDFN/php-to-motoko-skill/issues). Redact secrets and personal data before posting.