Download the PHP package strataface/billstack-status-badge without Composer

On this page you can find all versions of the php package strataface/billstack-status-badge. 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 billstack-status-badge

Billstack Status Badge

A small Livewire component that shows an invoice payment status as a coloured badge: draft, sent, paid, overdue or void. It's styled with Tailwind CSS utility classes and works with Livewire 3 and Livewire 4.

It's the PaymentStatusBadge component from Billstack, released on its own under the MIT license. It is UI only: it doesn't talk to a payment provider or decide what status an invoice has. You pass the status in.

What's in the package

Requirements

Install

The service provider is discovered automatically. There's no config file and nothing to publish.

Let Tailwind see the classes

The badge colours are Tailwind utility classes defined in the package's PHP enum and Blade view. Tailwind only generates classes it finds in the files it scans, so add the package to your sources.

Tailwind CSS v4 (for example resources/css/app.css):

Tailwind CSS v3 (tailwind.config.js):

Usage

Property Type Default Notes
status string draft draft, sent, paid, overdue or void, case-insensitive. Any other value is shown as Draft.
showLabel bool true When false, shows a dot and keeps the label in an sr-only span.

The rendered <span> also carries a billstack-status-badge class, so you can target it in your own CSS.

You can use the enum on its own, for example to label statuses elsewhere:

If your billing backend uses other names (Stripe, for example, uses open and uncollectible), map them to these five values before passing them in.

Tests

The full Billstack kit

This badge is one of five components in Billstack, a paid Livewire pack for customer and admin billing portals. The full kit has 4 more components:

It also includes its own math helpers, a local demo with sample data and a larger test suite. Like this package, it's UI only: no payment provider, tax engine, PDF generation or email delivery.

License

MIT. See LICENSE.

This package is not affiliated with or endorsed by Laravel or Livewire. Laravel and Livewire are separate open-source projects and are not included.


All versions of billstack-status-badge with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
livewire/livewire Version ^3.0 || ^4.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.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 strataface/billstack-status-badge contains the following files

Loading the files please wait ...