WP Manifestindependent plugin directory
manifest / integrations / sufiyans-awesome-block

Sufiyan Awesome Block

A simple plugin that retrieves data from a remote API endpoint, and makes that data accessible/retrievable from an API endpoint on the WordPress site your plugin is installed on. The data will be displayed via a custom block and on an admin WordPress page as described. A simple WP CLI command is also available

by Sufiyan Khan · github.com/sufiyankhan2203/sufiyans-awesome-block

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/sufiyankhan2203/sufiyans-awesome-block/archive/refs/heads/main.zip

Sufiyan's Awesome Plugin

A simple plugin that retrieves data from a remote API endpoint, and makes that data accessible/retrievable from an API endpoint on the WordPress site your plugin is installed on. The data will be displayed via a custom block and on an admin WordPress page as described. A simple WP CLI command is also available This Plugin Follows WordPress-VIP-Go Coding Standards.

Getting Started

Installing

  1. Tested on PHP 8.1.29 and WordPress 6.6.2
  2. Download and extract the plugin files to your WordPress plugins directory
  3. Install Composer and run composer install
$ composer install
  1. Activate the plugin through the 'Plugins' menu in WordPress

Using

Thds Plugin adds a Custom Gutenberg Block and a WP_CLI Command

$ wp Sab refresh_api

Screen Shots

Frontend

CleanShot 2024-10-25 at 20 48 17@2x

Backend

CleanShot 2024-10-25 at 22 54 43@2x

Block

CleanShot 2024-10-25 at 22 54 32@2x

CLI Command

CleanShot 2024-10-25 at 22 56 16@2x

Built With

This Plugin uses a number of open source projects to work properly:

  • WordPress - an open source content management system
  • Gutenberg - new paradigm in WordPress site building and publishing
  • WP_CLI - the command-line interface for WordPress
  • Composer - a Dependency Manager for PHP
  • SASS - Sass is a stylesheet language that’s compiled to CSS
  • JavaScript - a dynamic programming language
  • node.js - evented I/O for the backend
  • NPM - is the world's largest software registry
  • PHPCS - PHP_CodeSniffer is a set of two PHP scripts; one for validating PHP, syntax, and the other for checking adherence to a defined set of coding standards.

Contact

Sufiyan Khan - Senior WordPress Developer

My_Site - LinkedIn - Email

Code is Poetry