---
title: "Writing PHP Scripts in DreamFactory | DreamFactory"
description: "The PHP equivalent of DreamFactory's scripting model: attach custom logic to generated endpoints in PHP, with the same access to the request and response as…"
url: "https://www.dreamfactory.com/videos/php-scripts"
---

[Home](https://www.dreamfactory.com/) › [Videos](https://www.dreamfactory.com/videos) › Writing PHP Scripts in DreamFactory

# Writing PHP Scripts in DreamFactory

Tutorial·10 August 2016·6 min 12 sec

The PHP equivalent of DreamFactory's scripting model: attach custom logic to generated endpoints in PHP, with the same access to the request and response as the other supported runtimes.

**Recorded in 2016.** The concepts still apply, but the interface shown predates the current DreamFactory release. Some steps may differ in the current release.

## What you’ll learn

* Writing PHP against the request and response objects
* Attaching PHP logic to a generated endpoint
* How PHP compares with the Python and Node.js runtimes

[Book a Demo](https://www.dreamfactory.com/demo)[More on our YouTube channel](https://www.youtube.com/@DreamfactoryAPI)

## More videos

* [Instant APIs for Oracle Databases](https://www.dreamfactory.com/videos/oracle-database-apis)
* [Using Virtual Foreign Keys Across SQL and NoSQL](https://www.dreamfactory.com/videos/virtual-foreign-keys-sql-nosql)
* [Admin Console: the Packages Tab](https://www.dreamfactory.com/videos/admin-console-packages-tab)
* [Writing Node.js Scripts in DreamFactory](https://www.dreamfactory.com/videos/nodejs-scripts)

[Browse all videos ›](https://www.dreamfactory.com/videos)

Video: https://www.youtube.com/watch?v=L_m3o8IDzT4
