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. adair-creative/js-actions

ActiveLibrary

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

Allows for easy use of server-side actions from Javascript

022PHP

Since May 20Pushed 6y 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 2mo 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 10% 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://www.gravatar.com/avatar/50ea9b17ec1418ae7c6715077e5c6d06a5080c4345574488dae955efa0a9b79c?d=identicon)[jessedsolomon](/maintainers/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)
```

PHPackages © 2026

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