Download the PHP package ailuracode/bladcn without Composer

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

bladcn CLI

shadcn/ui-style CLI to install Blade + Alpine components in Laravel projects.

Copies components from bladcn-components (CSS, JS, Blade) and resolves dependencies from each dependencies.json.

Registry layout (bladcn-components)

The CLI package does not ship component assets; they live in bladcn-components (default ../bladcn-components).

Installation

Or clone this repo and use the binary directly:

Usage

With Artisan (recommended in Laravel)

Standalone binary

From your Laravel app root:

Configuration (bladcn.json)

The default registry points to bladcn-components. You can change it using any of these formats:

Local registry (development)

You can also set a relative path in registry:

How components are resolved

Resolution is declarative: the CLI reads each component's dependencies.json in the registry and persists installed components in resolved inside bladcn.json. It does not infer dependencies from Blade imports.

Registry lookup

Registry locates components under resources/views/components/ui/ (preferred) or components/ inside the configured registry. A component is either a folder (accordion/) or a single file (foo.blade.php).

dependencies.json manifest

Only folder components may include a manifest. ComponentManifest parses:

Field Purpose
dependencies Other registry components installed first (transitive, depth-first)
composer Packages passed to composer require when missing
npm Documented for the host project (not installed automatically)
css CSS files copied from the registry and imported into the main CSS file
js JS files copied under resources/js/ and wired into bladcn.js when needed

Same-group sub-components (e.g. accordion/trigger.blade.php) are not listed in dependencies; only external registry components are.

Install flow (bladcn add)

When you run bladcn add accordion, the CLI:

  1. Validates the component exists in the registry
  2. Builds an ordered install plan via ComponentInstaller::resolveInstallPlan() (dependencies first)
  3. Copies each component folder/file to componentsPath (skips dependencies.json)
  4. Runs composer require for aggregated composer entries (--no-external-deps skips this)
  5. Publishes css / js assets and updates imports in app.css / bladcn.js
  6. Merges newly installed names into resolved in bladcn.json

Use --no-deps to install only the requested component without transitive registry dependencies.

Remove flow (bladcn remove)

ComponentRemover uses resolved plus DependencyResolver to detect orphans: internal components, Composer packages, and CSS/JS assets that no remaining installed component still needs. Orphan removal can be skipped with --no-orphans.

Laravel project requirements

Copied components require the following in the host app (this CLI does not install them):

Dependency Purpose
livewire/blaze @blaze directive
mallardduck/blade-lucide-icons <x-ui.icon>
@ailuracode/alpine-child Client-side as-child slot delegation
resources/css/app.css Tailwind 4 + shadcn tokens
resources/js/bladcn.js Alpine helpers (bladcnOnAlpine, scroll-area, copy button)
resources/js/bladcn/carousel.js Embla carousel registration
resources/views/partials/bladcn-boot.blade.php Layout hook before @stack('bladcn-scripts')

Commands

Artisan Binary Description
bladcn:init bladcn init Create bladcn.json and publish base stubs
bladcn:list bladcn list List registry components
bladcn:add bladcn add Install components and dependencies
bladcn:remove bladcn remove Remove components and orphan deps

add options

Option Description
--all Install every component from the registry
--no-deps Skip internal dependencies
--no-external-deps Skip automatic composer require
--overwrite Overwrite existing components
--dry-run Preview without copying

remove options

Option Description
--no-orphans Do not remove orphan internal dependencies
--yes Remove orphans without prompting
--dry-run Preview without deleting

init options

Option Description
--with-dark-mode CSS theme with .dark variables
--css-file=app.css Main CSS file to import the theme into
--theme-file=bladcn-theme.css Theme file name
--skip-prompts Skip interactive prompts
--skip-assets Only bladcn.json, no stubs
--force Overwrite existing files

Code quality

Aligned with laravel-starter-kit: Laravel Pint (strict preset), Larastan (max level + bleedingEdge), Rector with rector-laravel.

See AGENTS.md for architecture notes and agent conventions.

License

MIT. See LICENSE.


All versions of bladcn with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
symfony/console Version ^7.0|^8.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 ailuracode/bladcn contains the following files

Loading the files please wait ...