Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/automattic/jetpack-licensing
[READ ONLY] A Licensing Package that attaches Jetpack licenses. This repository is a mirror, for issue tracking and development head to: https://github.com/automattic/jetpack
https://github.com/automattic/jetpack-licensing
jetpack
Last synced: 4 days ago
JSON representation
[READ ONLY] A Licensing Package that attaches Jetpack licenses. This repository is a mirror, for issue tracking and development head to: https://github.com/automattic/jetpack
- Host: GitHub
- URL: https://github.com/automattic/jetpack-licensing
- Owner: Automattic
- License: other
- Created: 2020-09-21T17:35:14.000Z (about 4 years ago)
- Default Branch: trunk
- Last Pushed: 2024-05-22T16:48:34.000Z (5 months ago)
- Last Synced: 2024-05-22T17:03:47.817Z (5 months ago)
- Topics: jetpack
- Language: PHP
- Homepage:
- Size: 195 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
# Jetpack Licensing
A Licensing Package that attaches Jetpack licenses.
## Usage
### Initialize to automatically attach licenses when:
- The `jetpack_licenses` option is updated.
- Jetpack is connected.```php
use Automattic\Jetpack\Licensing;Licensing::instance()->initialize();
```### Attach an array of license keys.
```php
use Automattic\Jetpack\Licensing;$licenses = array( 'license_key_1', 'license_key_2' );
$results = Licensing::instance()->attach_licenses( $licenses );
```
## Using this package in your WordPress pluginIf you plan on using this package in your WordPress plugin, we would recommend that you use [Jetpack Autoloader](https://packagist.org/packages/automattic/jetpack-autoloader) as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.
## Security
Need to report a security vulnerability? Go to [https://automattic.com/security/](https://automattic.com/security/) or directly to our security bug bounty site [https://hackerone.com/automattic](https://hackerone.com/automattic).
## License
jetpack-licensing is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt)