Search by

arraypress member since: Jan 21, 2024 · Transparency log

arraypress's packages

  • PHP

    sugarcommerce/cli

    Command-line plumbing for PHP apps: argument parsing with typed reads, aligned tables and help listings, returned as strings. Zero dependencies.

  • PHP

    sugarcommerce/cloudflare

    Cloudflare for SaaS custom hostnames: add a customer's domain, ask how it is going, remove it, with Cloudflare's two separate verifications read as one status a shop can act on.

  • PHP

    sugarcommerce/countries

    ISO 3166-1 country data: codes, names, emoji flags, EU membership, sanctioned and elevated-risk territories. Zero dependencies.

  • PHP

    sugarcommerce/currency

    Money formatting and parsing for integer minor units. 136 currencies with correct decimal exponents — including the twenty where dividing by 100 is wrong. Zero dependencies.

  • PHP

    sugarcommerce/data-subject

    The small, easily-botched pieces of answering a GDPR access or erasure request: the export without the columns a person must not be handed, finding an address in stored payloads however JSON escaped it, an audit trail that does not undo the erasure it records, and plain summaries of what was done. Z

  • PHP

    sugarcommerce/dates

    UTC-first date handling: freezable clock, safe timestamp parsing, relative times, and reporting ranges with exclusive ends. Zero dependencies.

  • PHP

    sugarcommerce/dev-tools

    Development checks for the SugarCommerce family and the apps built on it: a docblock coverage report that can gate a build, a headless-Chrome smoke test that loads every page and fails on any console error, and small real demo media (WAV, PNG, PDF, ZIP) made in code, the same bytes on every run.

  • PHP

    sugarcommerce/discord

    The Discord calls for giving a role on purchase: a bot invite link, user sign-in with PKCE, adding a member with a role, and taking the role back, with the DiscordBot User-Agent the API requires.

  • PHP

    sugarcommerce/email-templates

    Declarative transactional email rendering: layouts, operator-editable bodies, and typed components. Tags are escaped for the context they land in, and an unresolved tag never reaches a customer. Zero dependencies.

  • PHP

    sugarcommerce/embeds

    Turn a URL somebody pasted into an embed you can safely put in an iframe. A closed list of platforms, exact host matching, and a src rebuilt from validated parts rather than the string that arrived. Zero dependencies.

  • PHP

    sugarcommerce/env

    Environment configuration for plain PHP: .env parsing that handles quotes and multi-line values, typed accessors that fail loudly on a missing requirement, and no global mutation. Zero dependencies.

  • PHP

    sugarcommerce/file-inspect

    Look at the bytes a file actually contains: executable signatures refused whatever the name, contents that disagree with the extension, archives carrying what you would not accept directly, and double extensions that hide the real one. Pure functions, no I/O, zero dependencies.

  • PHP

    sugarcommerce/format-utils

    Display formatting: byte sizes, durations, compact numbers, word-safe truncation, deterministic initials avatars, file-type labels and content types, and forgiving search. Parses back what it formats. Zero dependencies.

  • PHP

    sugarcommerce/generate

    Identifier generation: UUID v4 and v7, human-readable licence and discount codes, transliterating slugs, and CSPRNG-backed API keys. Zero dependencies.

  • PHP

    sugarcommerce/github

    The GitHub calls for selling access to private repositories: a GitHub App's RS256 JWT and installation tokens, user sign-in with PKCE that handles GitHub's 200-with-an-error answer, and collaborator invitations kept by numeric id rather than by a login that can be renamed.