wp-graphql
php-scoper
Our great sponsors
wp-graphql | php-scoper | |
---|---|---|
53 | 2 | |
3,600 | 675 | |
0.4% | 1.2% | |
9.6 | 8.8 | |
about 21 hours ago | 9 days ago | |
PHP | PHP | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wp-graphql
-
Why Everyone Hates WordPress
Are you dead set on building a Nuxt + Vue application? Partial to NextJS like I am? Well good news everyone, WordPress has done a pretty decent job over the past couple of years building out the WordPress API and enabling developers to leverage WordPress as a Headless CMS. Pair that with the amazing WPGraphQL Pluginand you’re cooking with JavaScript. You get all the benefits of really solid backend CMS that end users are familiar with, and can grasp with a 1 hour CMS training, distributed using your favorite flavor of JavaScript.
-
Nuxt3, Wordpress and ACF Flexible content types
It's very easy to use when you use https://www.wpgraphql.com/ Here's an example of a repeatable component I set up using the repeater filled. It might help you.
-
redirect headless wordpress frontend without affecting API
I am using Headless Wordpress with https://www.wpgraphql.com/ for API hosted on SiteGround and Nextjs for frontend.
-
Looking for a plugin/codebase using which I can enter and save data which will then be available via the REST API
I think you might be looking for WPGraphQL
-
Why is does modern HTML/CSS seem so complex and convoluted? (details in comment)
- WPGraphQL
-
I made my own WordPress Plugin!
Look at other popular plugins to see what they do, and how that's different from what you did. For example browse a bit through https://github.com/wp-graphql/wp-graphql
-
How to fetch data from a GraphQL endpoint into a NextJS 13 server component using the native fetch() API
As you can see I'm getting all the posts from my Wordpress GraphQL endpoint and receiving the title, excerpt, slug and date fields, there's more I can get if I follow the GraphQL API for Wordpress documentation, but that's all I need for the demo.
-
Show HN: New GraphQL API for WordPress (1.5 years of development, 16000 commits)
How does this compare to WPGraphQL https://www.wpgraphql.com that's been around for quite some time (https://github.com/wp-graphql/wp-graphql)
Did you find shortcomings with that plugin?
-
how to add login for site owner and functions to add and remove media/text from website?
You can use wordpress as a backend and then hook up your frontend through a graphql api plugin.
-
Build and deploy site when wordpress data update.
You want to use WP as a headless CMS. Look at https://www.wpgraphql.com
php-scoper
-
🍾 GraphQL API for WordPress is now scoped, thanks to PHP-Scoper!
return [ 'patchers' => [ function ( $file_path, $prefix, $contents ) { /* * There is currently no easy way to simply whitelist all global WordPress functions. * * This list here is a manual attempt after scanning through the AMP plugin, which means * it needs to be maintained and kept in sync with any changes to the dependency. * * As long as there's no built-in solution in PHP-Scoper for this, an alternative could be * to generate a list based on php-stubs/wordpress-stubs. devowlio/wp-react-starter/ seems * to be doing just this successfully. * * @see https://github.com/humbug/php-scoper/issues/303 * @see https://github.com/php-stubs/wordpress-stubs * @see https://github.com/devowlio/wp-react-starter/ */ $contents = str_replace( "\\$prefix\\_doing_it_wrong", '\\_doing_it_wrong', $contents ); $contents = str_replace( "\\$prefix\\__", '\\__', $contents ); $contents = str_replace( "\\$prefix\\esc_html_e", '\\esc_html_e', $contents ); $contents = str_replace( "\\$prefix\\esc_html", '\\esc_html', $contents ); $contents = str_replace( "\\$prefix\\esc_attr", '\\esc_attr', $contents ); $contents = str_replace( "\\$prefix\\esc_url", '\\esc_url', $contents ); $contents = str_replace( "\\$prefix\\do_action", '\\do_action', $contents ); // ... } ] ]
-
👷🏽♂️ Building the GraphQL API in the Open #1 (March '21)
🍾 GraphQL API for WordPress is now scoped, thanks to PHP-Scoper! describes a strategy to scope a WordPress plugin using PHP-Scoper, as to avoid conflicts with other plugins.
What are some alternatives?
faustjs - Faust.js™ - The Headless WordPress Framework
wordpress-seo - Yoast SEO for WordPress
elementor - The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
monorepo-builder - Composer tools to maintain a monorepo
wp-graphql-woocommerce - Add WooCommerce support and functionality to your WPGraphQL server
wp-react-starter - 🚀WordPress Plugin Boilerplate using modern web techs like TypeScript, SASS, and so on... on top of a local development environment with Docker and predefined GitLab CI for continous integration and deployment!
wordpress-popular-posts - WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
site-kit-wp - Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
objectbox-dart - Flutter database for super-fast Dart object persistence
mozart - Developers tool for WordPress plugins: Wraps all your projects dependencies in your own namespace, in order to prevent conflicts with other plugins loading the same dependencies in different versions.
wp-graphql-jwt-authentication - Authentication for WPGraphQL using JWT (JSON Web Tokens)
graphql-api-for-wp-dist - [READ ONLY] Generated plugin "GraphQL API for WordPress" for PHP 7.1