Download the PHP package justinholtweb/craft-digits without Composer

On this page you can find all versions of the php package justinholtweb/craft-digits. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-digits

Digits

Gated digital downloads and software licensing for Craft CMS 5.

Craft's own craftcms/digital-products gives Commerce a digital purchasable and stops there. What a shop selling files needs afterwards is the part that is missing, and that is what Digits is:

Commerce is optional. Gating a file behind a user group, issuing a licence by hand, expiring a link and counting a delivery are all Craft-only features. The whole Commerce integration is one service behind one guard.

Requirements

Installation

Editions

Lite is a working download shop, not a demo. Selling files, protecting them behind expiring links, capping how many times each buyer may take them, versioning them and revoking them when the money goes back are all in Lite, uncapped — there is no limit on the number of downloads or the number of buyers.

Pro ($129, then $99/year for updates) is the software vendor's half: licence keys that machines can check, activation seats, the front-end portal, release notices, update gating and the VAT paperwork.

Lite Pro
Price Free $129 + $99/year
Downloads, versions, expiring links, limits ✓ ✓
Licences as entitlements, refund revocation ✓ ✓
Download activity log ✓ ✓
Versions per download 2 unlimited
Licence keys and the activation API ✓
Activation seats ✓
Customer portal ✓
Release notices and update gating ✓
VAT invoices, VAT ID checking, OSS return ✓

Attaching downloads to what you sell

Add a Downloads field to a Commerce variant's field layout and relate the files. That is the whole bridge — a purchase of the variant issues a licence covering everything related.

A download can also carry a SKU, which Digits matches against a line item when nothing relates it. Use the field where you can; use the SKU where somebody else owns the product field layout.

The same field works anywhere: put it on an entry to gate a PDF behind a user group, with no Commerce involved at all.

Templating

craft.digits.can() returns the same verdict the delivery endpoint will produce, which is what makes it impossible to render a button the download would refuse.

Everything else is an ordinary element query:

The activation API

Every response is { success, code, message, … }. The code is machine-readable — unknown-key, expired, seat-limit, not-activated — because those lead to different dialogues in your customer's software.

versions returns only the releases the licence is entitled to, each file with a freshly minted download URL, so an updater and the download endpoint can never disagree.

Console commands

VAT, honestly

Digits determines and documents VAT. It does not charge it — your tax engine decides what a customer pays, and quietly restating that figure on the invoice is how a shop ends up with books that do not reconcile.

So Digits works out what the treatment should have been (domestic, the customer's country, reverse charge, or outside the scope), prints it with the wording the directive requires, records what Commerce actually took beside it, and puts the invoices where the two disagree on one screen.

VAT ID checking against VIES is off by default and opt-in: it is an outbound request during somebody's checkout to a service that is frequently down. With it off, Digits still checks the country prefix and the shape — which catches typos, and which is not the same evidence. The invoice records which of the two it had, and will not claim the reverse charge on a format check alone unless a human has confirmed the number.

Documentation

Full documentation: https://justinholt.com/plugins/craft-digits/docs

Licence

The Craft License. See LICENSE.md.


All versions of craft-digits with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
craftcms/cms Version ^5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package justinholtweb/craft-digits contains the following files

Loading the files please wait ...