PHPackages                             devhammed/server-actions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. devhammed/server-actions

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

devhammed/server-actions
========================

PHP server actions!

0.0.5(2y ago)56MITPHPPHP &gt;=8.0

Since Oct 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/devhammed/php-server-actions)[ Packagist](https://packagist.org/packages/devhammed/server-actions)[ Docs](https://github.com/devhammed/php-server-actions)[ RSS](/packages/devhammed-server-actions/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

devhammed/server-actions
========================

[](#devhammedserver-actions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ecf4b550df298683fc89cd136b9fb78663a3e06f85cbe2f78d3e4c77666cf28/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657668616d6d65642f7365727665722d616374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devhammed/server-actions)

Making [Next.js Server Actions](https://nextjs.org/docs/app/api-reference/functions/server-actions) work in PHP!

This is a proof of concept inspired by [this tweet](https://x.com/WebReflection/status/1717853489034932631?s=20), and it's not meant to be used in production.

But it works so let's go!

Installation
------------

[](#installation)

The recommended way to install this package is through [Composer](https://getcomposer.org/).

```
composer require devhammed/server-actions
```

Then include the Composer autoloader in your entry file (e.g `index.php`) like:

```
