wp-graphql-jwt-authentication
fig-standards
wp-graphql-jwt-authentication | fig-standards | |
---|---|---|
3 | 47 | |
324 | 12,509 | |
0.9% | 0.1% | |
3.7 | 7.7 | |
5 months ago | 5 days ago | |
PHP | ||
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
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-jwt-authentication
-
10+The Best PHP Projects GitHub 2022
JWT authentication plugins: JWT WP REST and JWT WP GraphQL.
-
NextJS Authentication
with WPGraphQL Quries
Let's start with installing WPGraphQL JWT Authentication. Open the link and Download the .zip from Github and add to your plugins directory, then activate the plugin. JWT uses a Secret token defined on the server to validate the signing of tokens. Generate your secret token from WordPress Secret Token and copy the NONCE_SALT. Next Step is to define the secret token. You can define a Secret in WordPress file wp-config.php or Or you can use the filter graphql_jwt_auth_secret_key to set a Secret. Add your secret token and paste below line in wp-config:
-
Using Docker For Local Development Of Headless WordPress Apps With NextJS
That's all you need to set up a NextJS app using a local WordPress site running in Docker containers. You can start developing the PHP and JavaScript for your project. What you do next is up to you. Figuring our deployment and authentication as well as coding the app will come next.
fig-standards
- Moving PHP forward through collaboration and standards
-
A workaround to handle PSR-4 && WordPress Coding Standards at same time
The namespaces and class names must follow this example.
-
Materials/Topics for Senior dev new to PHP
I would familiarize yourself with the following PHP standards: https://www.php-fig.org
-
Autoloading, coding standards and file structure in WordPress plugin development
The PHP Standard Recommendation, or PSR for short, from the aforementioned PHP-FIG.
- PHP-FIG considering raising money to cover $30/year costs
- PHP-FIG planning to raise money to cover $30/year costs
-
PSR-4 Autoloading Woes
That's what happens if you use a PSR-4 autoloader and not utilise PSR-4 in your project structure ๐ So either use PSR-0 or properly use PSR-4.
- PHPDoc, PSR-5 and commenting inside the code
- PHP-Fig Is Down
-
I donโt get all the hate for PHP and at this point I am too afraid to ask.
PHP really "got it's act together" in my view when packagist and composer (which are PHP's equivalent of npm) became mainstream and with the release of the PSR community standards. We were admittedly a little behind the curve with regards to package managers but with standardised formats and not having to copy and paste zip file libraries anymore, PHP received a new lease of life.
What are some alternatives?
next-wordpress-docker
sulu - Core framework that implements the functionality of the Sulu content management system
wp-graphql-woocommerce - Add WooCommerce support and functionality to your WPGraphQL server
laravel-totem - Manage Your Laravel Schedule From A Web Dashboard
wp-graphql - :rocket: GraphQL API for WordPress
Symfony - The Symfony PHP framework
elementor - The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
headless-wp-starter - ๐ช WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
wp-graphql-acf - WPGraphQL for Advanced Custom Fields
Brick\Money - A money and currency library for PHP
CraftCMS - Build bespoke content experiences with Craft.
app - Yii3 application template