Modern WordPress development without the boilerplate.
Pockets is a developer framework for WordPress that provides a powerful CRUD API, a real-time query builder, VUE integration, reusable components and various other tools to help you build any kind of WordPress application/site faster.
Instead of scattering things like WP_Query, get_post_meta(), wp_insert_post(), and custom REST endpoints throughout your codebase, Pockets gives you a consistent developer experience for working with WordPress data.
Pockets exists to make WordPress development feel less like managing a collection of APIs and more like building applications.
Write less boilerplate. Build faster. Stay in WordPress.
- PHP 8+
- WordPress 5.6+
WordPress is an incredible CMS, but building modern applications often means dealing with:
- Repetitive data operations
- Complex WP_Query configurations
- Custom REST endpoints
- Large amounts of boilerplate code
- Difficult frontend integration
- Integrating VUE/Javascript functionality with templates
Pockets simplifies these workflows and allows you to focus on building features instead of plumbing.
Pockets provides a CRUD API that can be used to interact with various WordPress data, such as posts, terms, taxonomies and even site options. You may have heard of GraphQL. Pockets CRUD API is exactly like GraphQL, but better!
-
CRUD actions
CRUD models can be used to
create,read,updateordeletedata. -
Flexible Data Control
You can fully control the shape of your data with flattening and aliasing, and precisely fetch only the data you need.
-
Extensibility
CRUD models can be created, modified or replaced allowing developers to add new ways to interact with site data.
-
Available server side, client side and through REST
CRUD models can be used through REST, allowing you to create headless WordPress sites. You can also use the API within VUE or other javascript libraries. The CRUD API is also available server side.
-
CRUD Query builder
Pockets CRUD comes with an easy to use tool to quickly build CRUD queries. It has a full schema system that models utilize to provide contextual help about the structure of their queries, as well as the data they provide.
For example:
pockets::crud('post')::init( null )->create([
'post_title' => 'Hello World',
'post_status' => 'publish',
'post_type' => "post"
]);$pockets.crud("post").init( null ).create({
post_title: "Hello world",
post_status: "publish",
post_type: "post"
})$post = pockets::crud("post")::init( 1 )->read([
'title',
'slug',
'excerpt',
'image' => [
'url'
]
]);
\pockets::dump( $post );let post = $pockets.crud("post").init( 1 ).read([
'title',
'slug',
'excerpt',
{
image: [
'url'
]
}
])Quickly build CRUD queries using our real-time Query Builder.
Comes with models for:
- Posts
- Pages
- Custom Post Types
- Taxonomies
- Terms
- Users
- Metadata
- (ACF) Advanced Custom fields
- WP Options
- Media
and much more. New CRUD models can be added easily, allowing developers to easily extend the system.
Enhance your WordPress frontend with the power of VUE using Pockets. Seamlessly load VUE components directly into your WordPress templates with a single HTML tag. Enjoy the full power of VUE syntax, including directives. Easily create dynamic, interactive user experiences without any configuration required.
<pockets-app>
<youtube
video-id="abc123"
>
</youtube>
</pockets-app>Mount VUE components anywhere in your WordPress site without complicated setup.
Ship production-ready interfaces faster with reusable UI components designed for WordPress projects. Pockets comes with a plethora of ready to use VUE components for all sorts of things: Modals, Youtube Players, Google maps integration and much more. Check out our comprehensive list of available VUE components
Pockets leverages PHPUnit to perform extensive, end to end unit testing of every aspect of the plugin.
Simply download the latest release and install through WordPress like any standard plugin.
Pockets is designed for:
- WordPress plugin developers
- WordPress theme developers
- Agencies building custom websites
- Developers building headless WordPress applications
- Teams that want a modern development workflow
- Pretty much anyone. Even beginners/non-developers can use Pockets.
| Task | Traditional WordPress | Pockets |
|---|---|---|
| Query content | WP_Query | Simple query API |
| CRUD operations | Multiple functions | Unified interface |
| Metadata handling | Manual | Built-in |
| VUE integration | Custom setup | Included |
| Reusable components | Build yourself | Included |
| Testing support | Manual setup | Framework-friendly |
Documentation, guides, and examples are available at:
Contributions, bug reports, and feature requests are welcome. Please open an issue or submit a pull request.
Pockets is free for personal use under GPL-2. If you wish to use it for commercial purposes or are a developer wanting to use it for clients sites, you will need to purchase a developers license.
If you have any questions or wish to sponsor us, please contact us.
We also offer several other Products that extend Pockets and provide functionality for various aspects of your WordPress site. Such as:
- A WooCommerce extension
- A starter theme
- Visual Site editor
- A visual Form editor