pollora/ajax
Composer 安装命令:
composer require pollora/ajax
包简介
A modern PHP package for WordPress AJAX action management with fluent API
README 文档
README
A modern PHP package for WordPress AJAX action management with a fluent API.
Installation
composer require pollora/ajax
Quick Start
use Pollora\Ajax\Ajax; // Register for all users Ajax::listen('my_action', function () { wp_send_json_success(['message' => 'It works!']); }); // Logged-in users only Ajax::listen('my_action', function () { // ... })->forLoggedUsers(); // Guest users only Ajax::listen('my_action', function () { // ... })->forGuestUsers();
Documentation
See docs/ajax.md for full documentation.
Testing
composer test
License
GPL-2.0-or-later
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-22