Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-08-21 (1 month ago) ![]() | Not yet rated by the users | Total: 31 This week: 2 | All time: 10,599 This week: 75![]() |
Version | License | PHP version | Categories | |||
wp-react-kit 1.0 | MIT/X Consortium ... | 5 | PHP 5, Content management, Blogs |
Description | Author | |||
This package provides an environment to develop new WordPress plugins. Innovation Award
|
|
A simple starter kit to work in WordPress plugin development using WordPress Rest API, WP-script, React, React Router, Tailwind CSS, PostCSS, Eslint, WP-Data, WP-Data Store, React Components, React CRUD, i18n, PHPUnit Test, JestUnit Test, e2e Test and PHP OOP plugin architecture easily in a minute.
# Clone the Git repository
git clone https://github.com/ManiruzzamanAkash/wp-react-kit.git
# Install PHP-composer dependencies [It's empty]
composer install
# Install node module packages
npm i
# Start development mode
npm start
# Start development with hot reload (Frontend components will be updated automatically if any changes are made)
npm run start:hot
# To run in production
npm run build
After running start
, or build
command, there will be a folder called /build
will be generated at the root directory.
You need activate the plugin from plugin list page. http://localhost/wpex/wp-admin/plugins.php
./vendor/bin/phpunit
npm run test:unit
WordPress core doc link: https://make.wordpress.org/core/2019/06/27/introducing-the-wordpress-e2e-tests/
Requirements: - Must have docker installed and running by ensuring these commands -
npm run env:stop
npm run env:start
Normal e2e test
npm run test:e2e
Interactive e2e test
npm run test:e2e:watch
Get all errors of the project:
vendor/bin/phpcs .
Fix all errors of the project:
vendor/bin/phpcbf .
http://localhost/wpex/wp-admin/admin.php?page=jobplace#/
Where, /wpex
is the project root folder inside /htdocs
.
Or, it could be your custom processed URL.
Postman API Link - https://www.getpostman.com/collections/f94073131fc1411506e8
Create Job
- Method: `POST`
- URL: http://localhost/wpex/wp-json/job-place/v1/Jobs
- Body:
{
"title": "Simple Job Post",
"slug": "simple-job-post",
"description": "Simple job post description",
"company_id": 1,
"job_type_id": 2,
"is_active": 1
}
Update Job
- Method: `PUT`
- URL: http://localhost/wpex/wp-json/job-place/v1/jobs/1
- Body:
{
"title": "Simple Job Post Updated",
"slug": "simple-job-post-updated",
"description": "Simple job post description",
"company_id": 1,
"job_type_id": 2,
"is_active": 1
}
Delete Jobs
- Method: `DELETE`
- URL: http://localhost/wpex/wp-json/job-place/v1/jobs
- Body:
{
"ids": [1, 2]
}
Detailed Documentation - View Detailed documentations with parameters and responses of the REST API
v0.4.1 - 18/08/2022
v0.4.0 - 12/08/2022
v0.3.1 - 11/08/2022
v0.3.0 - 02/08/2022
<details>
<summary>Options for specific files:</summary>
Get specific file errors of the project:
vendor/bin/phpcs job-place.php
Fix specific file errors of the project:
vendor/bin/phpcbf job-place.php
</details>
<details>
<summary>Simple Version with raw PHP</summary>
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimple </details>
<details>
<summary>Version with EsLint and i18n Setup</summary>
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimpleEslint </details>
<details>
<summary>Version with EsLint, i18n and React Router Setup</summary>
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vReactRouter </details>
<details>
<summary>Version with PostCSS and Tailwind CSS Setup</summary>
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vTailwindCss </details>
<details>
<summary>Version with PHPCS setup</summary>
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vPHPCS </details>
<details>
<summary>Version with PHP OOP Architecture</summary>
https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vPhpOOP </details>
<details>
<summary>Simple Version Code-Structure:</summary>
</details>
<details>
<summary>Demo in WordPress plugin:</summary>
</details>
Job List Page
Job List Page with Pagination
Job List Page with search
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Example | Example script | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() |
Class | Class source | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.