# Freemius SDK (vendored)

This directory contains the [Freemius WordPress SDK](https://github.com/Freemius/wordpress-sdk)
(v2.13.2), vendored directly so `includes/freemius/start.php` exists at the
path `EzPageSync\ez_ps_fs()` (`includes/class-ez-ps-freemius.php`) expects.

Excluded from the upstream release on purpose — none of these are needed at
runtime, and the project's own Makefile already strips dev tooling from the
shipped zips at the plugin level: `.git*`, `.github`, `.phpstan`,
`.example.env`, `CONTRIBUTING.md`, `composer.json`/`composer.lock`,
`gulpfile.js`, `gulptasks`, `package.json`/`package-lock.json`, `patches`,
`phpcompat.xml`, `phpcs.xml`, `phpstan.neon`, and the SDK's own `README.md`
(superseded by this file).

**Never commit the Freemius Secret Key (`sk_...`) anywhere** — it is
server-side only and is not used by this client SDK.

## Upgrading

To update the SDK to a newer release:

```bash
cd /tmp && git clone --depth 1 --branch <new-tag> https://github.com/Freemius/wordpress-sdk.git freemius-sdk
rsync -a --delete /tmp/freemius-sdk/ includes/freemius/ \
  --exclude '.git*' --exclude '.github' --exclude '.phpstan' --exclude '.example.env' \
  --exclude 'CONTRIBUTING.md' --exclude 'composer.json' --exclude 'composer.lock' \
  --exclude 'gulpfile.js' --exclude 'gulptasks' --exclude 'package.json' \
  --exclude 'package-lock.json' --exclude 'patches' --exclude 'phpcompat.xml' \
  --exclude 'phpcs.xml' --exclude 'phpstan.neon' --exclude 'README.md'
```

Then re-run `composer test` and `make build` to confirm nothing broke.
