# PHP CAKE + NextJs

**URL:** <https://discourse.cakephp.org/t/php-cake-nextjs/12517>\
**Category:** Need Help\
**Created:** [March 27, 2025, 8:41pm UTC](https://discourse.cakephp.org/t/php-cake-nextjs/12517 "2025-03-27T20:41:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadowx.jb](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@shadowx.jb](https://discourse.cakephp.org/u/shadowx.jb)\
**Post date:** [March 27, 2025, 8:41pm UTC](https://discourse.cakephp.org/t/php-cake-nextjs/12517/1 "2025-03-27T20:41:33Z")

</div>

Can you please advise me on the best way to run a nextjs application in phpcake? It can be statically exposed, but I would like the NextJs application to run on a certain URL and receive routes… Example…

`/articles` and `/articles/*.html` would be a NextJs application, which would receive from the PHP Cake API… would there be an example please?

Thank you

---

<div class="post-metadata">

**Author:** ![shaan007](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/shaan007/32/2765_2.png) [@shaan007](https://discourse.cakephp.org/u/shaan007)\
**Post date:** [March 28, 2025, 6:12pm UTC](https://discourse.cakephp.org/t/php-cake-nextjs/12517/2 "2025-03-28T18:12:34Z")

</div>

its all up to you @shadowx.jb. how do you manage your packages i mean how do you run next.js in direct cakephp or on external port url? I am going to start youtube video where i will discuss all these thing on channel

---

<div class="post-metadata">

**Author:** ![shadowx.jb](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@shadowx.jb](https://discourse.cakephp.org/u/shadowx.jb)\
**Post date:** [March 29, 2025, 5:24pm UTC](https://discourse.cakephp.org/t/php-cake-nextjs/12517/3 "2025-03-29T17:24:39Z")

</div>

I want to use it as a classic export from nextjs, no node.js server needed.
