Download the PHP package studioespresso/craftnet-cp without Composer
On this page you can find all versions of the php package studioespresso/craftnet-cp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download studioespresso/craftnet-cp
More information about studioespresso/craftnet-cp
Files in studioespresso/craftnet-cp
Package craftnet-cp
Short Description Basic craft net integration with a CP interface
License MIT
Informations about the package craftnet-cp
Craftnet CP plugin for Craft CMS 3.x
Basic craftnet integration with a CP interface and command line tools.
Note that I made this mostly for myself and that future development will take place if and when I need it. Issues and PR's will be handled on a best-effort basis.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require studioespresso/craftnet-cp
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Craftnet CP.
Configuring Craftnet CP
You can manage the following settings in your craftnet-cp.php
file:
- username (optional, also available as setting in CP)
- token (optional, also available as setting in CP)
- plugins (required, contains
handle => label
for each of your plugins.) -
displayNotes (optional, displays notes below plugin license info)
<?php return [ 'username' => '[email protected]', 'token' => '5tmukfu4x2ld8xm1619oJy8klw17fvDsXsDDft8nk' 'plugins' => [ 'plugin-handle' => 'Plugin Label', ], 'displayNotes' => true ];
Console Commands
You can add licenses individually or in bulk from the command line.
craftnet-cp/license/generate
- The
edition
attribute defaults tostandard
- The
expirable
attribute defaults tofalse
- The
count
attribute defaults to1
craftnet-cp/license/import-csv
Add licenses in bulk via a CSV file.
CSV files can include the following column headers:
- plugin
- count
- edition
- expirable
- notes
- privateNotes
Functionality
- Generate one or more licenses for a plugin
- List all sold and generated licenses
Brought to you by Studio Espresso