Download the PHP package wirecn/laravel-wirecn without Composer

On this page you can find all versions of the php package wirecn/laravel-wirecn. 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 laravel-wirecn

wirecn / laravel-wirecn

Blade UI components for Laravel with Tailwind-friendly class merging via cn() (tailwind-merge-php) and Alpine.js behaviours shipped as publishable JavaScript stubs.

Requirements

Install

minimum-stability: stable + repositório path

Packagist: a versão vem só das tags Git (v1.0.0, …). Não usamos o campo "version" no composer.json do pacote — evita o erro do Packagist “tag does not match version in composer.json” quando a tag e o campo divergem.

Repositório path: sem "version" no pacote, o Composer expõe normalmente dev-main (ou o nome do branch). Para satisfazer ^1.0 com minimum-stability: stable, podes usar alias no projecto consumidor, por exemplo: "wirecn/laravel-wirecn": "dev-main as 1.0.0" (ajusta o branch à tua cópia local).

Publish views (required for the default workflow — components live in your app):

Publish JavaScript (Alpine primitives, optional chart/phosphor islands):

Then import Alpine (and islands if you use them) from your Vite entry, for example:

Ensure Tailwind scans published components:

NPM dependencies

Composer does not install these. After vendor:publish --tag=wirecn-js, stubs live under resources/js/wirecn/. Install packages in your app root (package.json).

Required if you import alpine-ui.js

Used directly by the published bundle:

Package Role
embla-carousel <x-wirecn.carousel.*>
@floating-ui/dom Floating overlays (dropdowns, popovers, tooltips, command palette positioning, etc.)

Optional — Phosphor icons

Needed when you render <x-wirecn.phosphor-icon> (and defaults like <x-wirecn.icon> that delegate to it).

Package Role
react, react-dom phosphor-island.jsx mounts icons with createRoot
@phosphor-icons/react Icon modules; phosphor-registry.jsx uses import.meta.glob over node_modules/@phosphor-icons/react/dist/csr/*.es.js (path is relative to resources/js/wirecn/ → your app’s node_modules)

Vite: add @vitejs/plugin-react and ensure .jsx under resources/js/wirecn/ is compiled (same React major as your app).

Example (run after DOM ready; call again after Turbo / Livewire navigations if icons are injected later):

Optional — Charts

Needed for <x-wirecn.chart> (data-ui-chart nodes).

Package Role
react, react-dom Same as above if not already installed
recharts Chart primitives in chart-island.jsx

Versions and licensing

wirecn does not ship a package.json for your app: pin versions next to your Laravel / Vite / React stack. When upgrading wirecn, re-publish or diff stubs, then adjust npm ranges if builds fail.

Third-party docs: Embla, Floating UI, Phosphor, Recharts. You do not need to copy their APIs into this README—only install what you use and wire the init helpers above.

Usage

After publishing, use dot notation for nested components:

class and other HTML attributes are forwarded where each stub uses $attributes->class(cn(...)).

Updates

Layer What updates How
PHP (cn(), Wirecn\Laravel\Support\UiIcon, service provider) composer update wirecn/laravel-wirecn SemVer tags on Packagist.
Published Blade / JS Files under resources/views/components/wirecn/ and resources/js/wirecn/ Not overwritten by Composer. For upstream template fixes, read CHANGELOG, then re-run vendor:publish --tag=wirecn-views --force (backup first if you customised) or merge diffs manually.

Use SemVer: patch for bugfixes, minor for backwards-compatible additions, major for breaking PHP or Blade contracts.

Packagist (public)

Submit this repository (or a split mirror with this package at the Git root) to Packagist. During local development you can use a Composer path repository pointing at this directory.

License

MIT


All versions of laravel-wirecn with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
gehrisandro/tailwind-merge-php Version ^1.2
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
illuminate/view Version ^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 wirecn/laravel-wirecn contains the following files

Loading the files please wait ...