PHPackages                             danlapteacru/facetwp-local-json - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. danlapteacru/facetwp-local-json

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

danlapteacru/facetwp-local-json
===============================

Saves FacetWP facets, templates and settings as .json files within your theme.

0.1.0(1y ago)46[1 PRs](https://github.com/danlapteacru/facetwp-local-json/pulls)MITPHPPHP ^8.1

Since Jul 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/danlapteacru/facetwp-local-json)[ Packagist](https://packagist.org/packages/danlapteacru/facetwp-local-json)[ Docs](https://github.com/danlapteacru/facetwp-local-json/)[ RSS](/packages/danlapteacru-facetwp-local-json/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

FacetWP Local JSON
==================

[](#facetwp-local-json)

FacetWP Local JSON is a WordPress plugin that allows you to store FacetWP facets, templates and settings as .json file and keep them in your source code repository.

[![Packagist Version](https://camo.githubusercontent.com/7072b11d415f02f895ab5508b80d208cf085d3118bf065344ff9e3aede31a64f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e6c61707465616372752f666163657477702d6c6f63616c2d6a736f6e2e7376673f6c6162656c3d72656c65617365267374796c653d666c61742d737175617265)](https://packagist.org/packages/danlapteacru/facetwp-local-json)[![PHP from Packagist](https://camo.githubusercontent.com/f8dfa2d080994492853e19935dedab3c566401da7654a41985090d37f9a6a997/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64616e6c61707465616372752f666163657477702d6c6f63616c2d6a736f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/danlapteacru/facetwp-local-json)[![Packagist Downloads](https://camo.githubusercontent.com/e6119b1ef97646636503cfccda9c044bbe4f3dfc9924c40d7fec4fff70085fcf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e6c61707465616372752f666163657477702d6c6f63616c2d6a736f6e2e7376673f6c6162656c3d7061636b6167697374253230646f776e6c6f616473267374796c653d666c61742d737175617265)](https://packagist.org/packages/danlapteacru/facetwp-local-json/stats)[![GitHub License](https://camo.githubusercontent.com/d7a2d7dc7dfc9015cb506aa6cadae7a38dcccca8aeae3f3ab9914d5fa5ea0409/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64616e6c61707465616372752f666163657477702d6c6f63616c2d6a736f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/danlapteacru/facetwp-local-json/blob/master/LICENSE)[![Hire Me](https://camo.githubusercontent.com/449bdf8db4f3a966fc4cc9f203b220bc73b0efe099c12f83db3cf61c5cd5ef3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652d4d652d6666363962342e7376673f7374796c653d666c61742d737175617265)](mailto:danlapteacru@gmail.com)

- [Minimum Requirements](#minimum-requirements)
- [Installation](#installation)
- [Hooks](#hooks)
- [Constants](#constants)
- [TODO](#todo)
- [Credits](#credits)
- [License](#license)

Minimum Requirements
--------------------

[](#minimum-requirements)

- PHP v8.1
- WordPress v6.1
- [FacetWP](https://facetwp.com) v4.0

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

[](#installation)

### Composer (Recommended)

[](#composer-recommended)

```
composer require danlapteacru/facetwp-local-json
```

### WP-CLI

[](#wp-cli)

```
wp plugin install facetwp-local-json --activate
```

### wordpress.org plugins directory

[](#wordpressorg-plugins-directory)

Download from  and install it manually or via WordPress admin panel.

Hooks
-----

[](#hooks)

### `facetwp_local_json_settings`

[](#facetwp_local_json_settings)

Filter the settings that are stored in the .json file.

#### Example:

[](#example)

```
add_filter(
    'facetwp_local_json_settings',
    fn (array $settings): array => [
        ...$settings,
        $settings['general']['auto_refresh'] = true,
    ],
);
```

### `facetwp_local_json_storage_path`

[](#facetwp_local_json_storage_path)

Filter the path where the .json files are stored. Default is `wp-content/themes/your-theme/plugins/facetwp/local-json/settings.json`.

#### Example:

[](#example-1)

```
add_filter(
    'facetwp_local_json_storage_path',
    fn (): string => get_theme_file_path('facetwp/settings.json'),
);
```

Constants
---------

[](#constants)

### `FACETWP_LOCAL_JSON_STORAGE_PATH`

[](#facetwp_local_json_storage_path-1)

Define the path where the .json files are store in your `wp-config.php` file.

#### Example:

[](#example-2)

```
define('FACETWP_LOCAL_JSON_STORAGE_PATH', get_theme_file_path('facetwp/settings.json'));
```

### `FACETWP_LOCAL_JSON_FORCE_ENABLE`

[](#facetwp_local_json_force_enable)

Force enable/disable the FacetWP Local JSON features.

#### Example:

[](#example-3)

```
define('FACETWP_LOCAL_JSON_FORCE_ENABLE', true);
```

TODO
----

[](#todo)

- Add support for WPML and Polylang.
- Option to select which facets, templates and settings to store in the .json file.
- Tests.
- Documentation.

Credits
-------

[](#credits)

[FacetWP Local JSON](https://github.com/danlapteacru/facetwp-local-json) is created by [Dan Lapteacru](https://github.com/danlapteacru).

Full list of contributors can be found [here](https://github.com/danlapteacru/facetwp-local-json/graphs/contributors).

License
-------

[](#license)

[FacetWP Local JSON](https://github.com/danlapteacru/facetwp-local-json) is released under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

652d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6632c2d7860fefbd5b8c4d13d76f41f264e6d03a2585a9af41d62122520253f?d=identicon)[danlapteacru](/maintainers/danlapteacru)

---

Top Contributors

[![danlapteacru](https://avatars.githubusercontent.com/u/6186169?v=4)](https://github.com/danlapteacru "danlapteacru (11 commits)")

---

Tags

pluginwordpresswpfacetwplocal-jsonfacetwp-json

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danlapteacru-facetwp-local-json/health.svg)

```
[![Health](https://phpackages.com/badges/danlapteacru-facetwp-local-json/health.svg)](https://phpackages.com/packages/danlapteacru-facetwp-local-json)
```

###  Alternatives

[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[philippbaschke/acf-pro-installer

An install helper for Advanced Custom Fields PRO

283724.6k](/packages/philippbaschke-acf-pro-installer)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)[joanrodas/plubo-routes

WordPress routes made simple.

142.8k](/packages/joanrodas-plubo-routes)

PHPackages © 2026

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