---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/taskrouter/quickstart/php/control-workers#article
headline: "Part 4: Controlling Worker Activities using TaskRouter.js"
description: Part 4 of the Twilio TaskRouter PHP Quickstart ties the project together and adds a real-time agent user interface using TaskRouter.js, the companion JavaScript library.
url: https://www.twilio.com/docs/taskrouter/quickstart/php/control-workers
inLanguage: en
dateModified: 2026-07-06T16:59:46.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Part 4: Controlling Worker Activities using TaskRouter.js

Part 4 of the Quickstart ties the earlier parts of the project together and adds a real-time user interface using TaskRouter.js, the companion JavaScript library to Twilio TaskRouter. Complete these steps in order:

1. [Introducing TaskRouter.js](/docs/taskrouter/quickstart/php/agent-ui-introducing)
2. [Add an Agent UI to our Project](/docs/taskrouter/quickstart/php/agent-ui-add-project)
