PHPackages                             adair-creative/js-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adair-creative/js-actions

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adair-creative/js-actions
=========================

Allows for easy use of server-side actions from Javascript

022PHP

Since May 20Pushed 7y ago2 watchersCompare

[ Source](https://github.com/adair-creative/js-actions)[ Packagist](https://packagist.org/packages/adair-creative/js-actions)[ RSS](/packages/adair-creative-js-actions/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Javascript Actions `!BETA!`
===========================

[](#javascript-actions-beta)

A tool that allows for easy actions to easily be called from the client Javascript, featuring typed arguments, automatic method execution, DataObject getting by IDs &amp; default values!

Note: This is just a beta so it may be unstable and there will be more to come

`composer require adair-creative\js-actions`

Usage
-----

[](#usage)

PHP

```
class MyPage extends PageController {
	public function action_searchProducts(string $name, int $maxResults = 10, HTTPRequest $request) {
		return json_encode(Product::get()->filter("Name", $name)->limit($maxResults));
	}
}
```

Javascript

```
if ($(document.body).hasClass("MyPage")) {
	Controller.searchProducts($(".search").val()).then(result => {
		// ...
	});
}
```

Config
------

[](#config)

```
AdairCreative\JsActionsController:
    - js_namespace: "MyController"
    - action_prefix: "MyAction"
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43144345?v=4)[Jesse Solomon](/maintainers/jessedsolomon)[@jessedsolomon](https://github.com/jessedsolomon)

---

Top Contributors

[![jessedsolomon](https://avatars.githubusercontent.com/u/43144345?v=4)](https://github.com/jessedsolomon "jessedsolomon (6 commits)")[![jeesi01](https://avatars.githubusercontent.com/u/25692276?v=4)](https://github.com/jeesi01 "jeesi01 (3 commits)")

### Embed Badge

![Health badge](/badges/adair-creative-js-actions/health.svg)

```
[![Health](https://phpackages.com/badges/adair-creative-js-actions/health.svg)](https://phpackages.com/packages/adair-creative-js-actions)
```

###  Alternatives

[reactivex/rxphp

Reactive extensions for php.

1.7k3.3M53](/packages/reactivex-rxphp)[spatie/php-cloneable

A trait that allows you to clone readonly properties in PHP 8.1

971.3M17](/packages/spatie-php-cloneable)[robtimus/multipart

A library to support creating (streaming) multiparts

141.0M14](/packages/robtimus-multipart)[geocoder-php/mapbox-provider

Geocoder Mapbox adapter

121.1M2](/packages/geocoder-php-mapbox-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
