PHPackages                             softdiscover/sfdc-custom-jsoninfo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. softdiscover/sfdc-custom-jsoninfo

ActiveProject

softdiscover/sfdc-custom-jsoninfo
=================================

get json from http request and show it on a table

01PHP

Since Jul 9Pushed 5y agoCompare

[ Source](https://github.com/Softdiscover/sfdc-custom-jsoninfo)[ Packagist](https://packagist.org/packages/softdiscover/sfdc-custom-jsoninfo)[ RSS](/packages/softdiscover-sfdc-custom-jsoninfo/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

CUSTOM WORDPRESS PLUGIN
=======================

[](#custom-wordpress-plugin)

### DESCRIPTION

[](#description)

Wordpress Plugin that makes available a custom endpoint `/sfdc_show_users`. When visitor navigates to that endpoint `/sfdc_show_users`, a list of users are shown in a table. When visitor clicks on any user info inside the table, a modal window is triggered showing user details inside.

All user information are taken from a REST API

Getting started
---------------

[](#getting-started)

- [List of Requirements](#user-content-list-of-requirements)
- [Installation](#user-content-installation)
    - [Clone repository](#user-content-1-clone-repository)
    - [Install all dependencies](#user-content-2-install-all-the-necessary-dependencies)
- [Usage](#user-content-usage)
- [Key features](#user-content-key-features)
    - [Custom endpoint](#user-content-1-custom-endpoint)
    - [A table with users' details is visible](#user-content-2-a-table-with-users-details-is-visible)
    - [Unit tests](#user-content-3-unit-tests)
    - [PHPCS checks](#user-content-4-phpcs-checks)
    - [Cache](#user-content-5-cache)

List of Requirements
--------------------

[](#list-of-requirements)

- PHP &gt;=7.3 with CURL enabled
- Wordpress &gt;= 5.4.2
- Composer - it adds a Symfony Cache Component which is used to make cache of HTTP requests which are made to REST API endpoint

Installation
------------

[](#installation)

### 1. Clone repository

[](#1-clone-repository)

Within your WordPress installation, navigate to wp-content/plugins and run the following commands:

```
git clone https://github.com/Softdiscover/sfdc-custom-jsoninfo.git
cd sfdc-custom-jsoninfo
```

### 2. Install all the necessary dependencies

[](#2-install-all-the-necessary-dependencies)

Navigate to the root of the plugin and then run the following command:

```
composer install
```

and activate the plugin from Admin panel.

Usage
-----

[](#usage)

Once the plugin is activated, navigate to the endpoint `/sfdc_show_users` and a table with list of users will be loaded. then When visitor clicks on any user detail inside the table, a modal window is triggered showing user details inside.

Key features
------------

[](#key-features)

### 1. Custom endpoint

[](#1-custom-endpoint)

the Custom endpoint is available at `/sfdc_show_users`

### 2. A table with users' details is visible

[](#2-a-table-with-users-details-is-visible)

once the page is loaded, An HTTP request is made via AJAX to API  and if there is information, the table is filled with users data.

[![img show users](https://camo.githubusercontent.com/bbca2695d1929c0ae70bd2576ebb4815800bf8507a3b7945a6de29363c16376b/68747470733a2f2f692e696d6775722e636f6d2f7232436c3249582e706e67)](https://camo.githubusercontent.com/bbca2695d1929c0ae70bd2576ebb4815800bf8507a3b7945a6de29363c16376b/68747470733a2f2f692e696d6775722e636f6d2f7232436c3249582e706e67)

when visitor click on any user name/username/id in the table, a new HTTP request is made via AJAX to API (e.g. ). then the user information is printed in the modal window.

[![img get detail](https://camo.githubusercontent.com/f46dd0f06b1e7361952d824fa5659f02ff537d28755c71eee5eef65b634b752b/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f564647396c366f7274445a426f41734775712f67697068792e676966)](https://camo.githubusercontent.com/f46dd0f06b1e7361952d824fa5659f02ff537d28755c71eee5eef65b634b752b/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f564647396c366f7274445a426f41734775712f67697068792e676966)

### 3. Unit tests

[](#3-unit-tests)

Unit tests run without loading Wordpress nor the external API. For run all tests, just run the following command:

```
composer test
```

[![img unit test](https://camo.githubusercontent.com/ea7cd4b3069f40e492603c81341bbeac747444ede210802a12e3135373f0161e/68747470733a2f2f692e696d6775722e636f6d2f347938305073672e706e67)](https://camo.githubusercontent.com/ea7cd4b3069f40e492603c81341bbeac747444ede210802a12e3135373f0161e/68747470733a2f2f692e696d6775722e636f6d2f347938305073672e706e67)

### 4. PHPCS checks

[](#4-phpcs-checks)

Code is compliant with InpSyde code style. it can be checked running the following command:

```
composer sniff
```

[![img check InpSyde code style](https://camo.githubusercontent.com/0b7fc0a7d5d28f20020cfce1f344af0f47a201a4eb864ff10a929048351ce2fb/68747470733a2f2f692e696d6775722e636f6d2f6d4e75533877532e706e67)](https://camo.githubusercontent.com/0b7fc0a7d5d28f20020cfce1f344af0f47a201a4eb864ff10a929048351ce2fb/68747470733a2f2f692e696d6775722e636f6d2f6d4e75533877532e706e67)

### 5. Cache

[](#5-cache)

I use Symfony Cache component to set up caching on the server side. each HTTP request generates an unique URL then it is stored in the cache pool of Cache Component. so when the visitor navigate again over a user detail, the information is pulled from the Cache. The cache expiration is set to 60 minutes.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9947ab3a0265d70b3537358b92a370f5e53154f0c136c4b8b25ca4dc1eb95ae1?d=identicon)[laranginha](/maintainers/laranginha)

---

Top Contributors

[![larangin](https://avatars.githubusercontent.com/u/54059924?v=4)](https://github.com/larangin "larangin (5 commits)")[![cavanaro](https://avatars.githubusercontent.com/u/43734063?v=4)](https://github.com/cavanaro "cavanaro (1 commits)")

### Embed Badge

![Health badge](/badges/softdiscover-sfdc-custom-jsoninfo/health.svg)

```
[![Health](https://phpackages.com/badges/softdiscover-sfdc-custom-jsoninfo/health.svg)](https://phpackages.com/packages/softdiscover-sfdc-custom-jsoninfo)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
