Download the PHP package phattarachai/laravel-kradan without Composer

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

Laravel Kradan

Latest Version on Packagist Tests Code Style PHP Version Laravel Version Total Downloads

A review board inside your Laravel app. Claude pushes designed pages that ask for a decision, or a slide deck; your signed-in users pick options, comment, reply and drop pins; Claude pulls the answers back as review.md. A deck also presents full screen, and can go to a customer as a public, present-only link.

Kradan (กระดาน, "board") is for the moment a design or a business rule needs answers from the people who use the app, not only from the developer. Nothing is committed or deployed to show them a page: one command puts it on the board, and one command brings the answers back.

Requirements

Install

Enable it on the one environment your team reviews on (a staging or QA box), and leave it off everywhere else:

With KRADAN_ENABLED=false (the default) no route is registered at all, so every Kradan URL is a 404.

The board's JavaScript and CSS ship prebuilt and are served by the package, so there is no vendor:publish and no frontend build in your app. php artisan kradan:doctor checks the install.

If your app uses Laravel Boost, composer require runs boost:update, which rewrites the host's Boost skills. In a checkout without node_modules it can drop skills of unrelated packages; check git status afterwards and restore them.

Access

Register who may open Kradan in a service provider. $ability is one of:

Ability Lets a person When the callback returns null
view Open boards, pick, comment, draw, present, save a deck as PDF No
manage Mark a decision board decided No
share Make, list and revoke a deck's public links (ลิงก์สาธารณะ in the board's แชร์ menu) As view
edit Reserved for editing a deck's text in place (not built yet) As manage

A callback that answers every ability alike, like the one below, gives all four to the same people. One that returns null for share, or uses a match with no share arm, lets everyone who can view a board share it.

Without a callback only the local environment lets signed-in users in. A guest is sent to your login route; if your login route has another name, set it, or guests get a 403. For a Filament admin panel:

kradan:doctor reports a route name that does not exist.

What it does

Safety model

Pages Claude made run their own JavaScript. Served from your app's origin, that script would act with the viewer's session. Kradan prevents that:

For a stricter split, serve content from a separate host that points at the same app:

Pushing and pulling (for Claude)

The kradan:* commands run in a developer's checkout and call the server's token API.

Add that hash to the server (a comma list, so tokens rotate without downtime) and point the checkout at it:

Command What it does
kradan:push <dir> [--slug=] [--task=] [--dry-run] Zips a design folder (index.html) and pushes it as a round; prints the board URL
kradan:pull <slug\|board url> [--to=] Writes rounds/NN/review.json and review.md per round, the latest as review.md, and every uploaded image and file into attachments/
kradan:list Every board, its status and latest round
kradan:decide <slug> Marks a board decided (not a deck)
kradan:share <slug> [--days=14] [--round=] [--revoke=id] [--list] A deck's public, present-only link. --days=0 never expires; without --round it follows the latest round. The URL is printed once
kradan:deck <dir> Copies the deck runtime into a deck folder so it previews locally before a push
kradan:doctor Checks the install

The package ships a Laravel Boost skill, so php artisan boost:install teaches Claude this workflow in your project.

A pushed folder needs an index.html. Pages use the markup of the design workbench: data-dp on <body> for the round title, data-dp-step with data-title for each step, data-dp-option with data-key and data-label for options, data-dp-group for sections and data-dp-frames with data-src for live screens.

Decks

A deck is a page whose <body> has data-k-deck. Each <section data-dp-step data-title="…"> is one slide on a 1920×1080 canvas that the package's deck runtime scales to fit. The runtime (deck.js + deck.css, about 6 KB gzipped, no reveal.js and no mermaid) is injected into deck pages the way the frame agent is.

Markup
data-k-transition fade (default), slide, zoom or morph, on the slide coming in
data-k-build / data-k-build="n" Revealed one step at a time in present mode; equal numbers show together
data-k-id The element with the same id on the next slide morphs into it (View Transitions)
[data-k-diagram] A diagram: [data-k-node] boxes laid out with your CSS grid or flex
<span data-k-link="a b">label</span> An SVG connector from node a to b, redrawn on resize and on every build. data-k-style="dashed\|dotted", data-k-dir="both\|none", data-k-route="elbow"
aside[data-k-notes] Speaker notes

Base classes: .k-box (a machine), .k-chip (a service), .k-zone with a .k-zone-title (a group), and .k-cover, .k-cols, .k-big, .k-timeline, .k-shot for layouts. Restyle with the --k-slide-* tokens (bg, fg, muted, accent, accent-bg, line, pad, font) or your own CSS. Text boxes never clip, so Thai marks above and below the line stay whole.

Preview locally before pushing: php artisan kradan:deck public/design/<slug> copies the runtime into public/design/<slug>/kradan-deck/ and links it from a <!-- kradan:deck:start --> block in the head. Open the page directly: one slide at a time, ← → Space, Home, End, F fullscreen, B black, #N in the URL. kradan:push leaves that folder out, and the server strips the block and injects its own runtime.

Present from the board with the green ▶ button or F: full screen, ← → Space PageUp PageDown, Home, End, B for a black screen, Esc to leave. ?present=N on the board URL opens the show at slide N.

Share and PDF sit in one แชร์ menu at the top right of a deck's board:

Both are for decks only: on a decision board the แชร์ button is greyed out.

Configuration

Key Env Default
enabled KRADAN_ENABLED false Off means every URL 404s
path KRADAN_PATH kradan
connection KRADAN_DB_CONNECTION default Holds the kradan_* tables
disk KRADAN_DISK local Round files go under kradan/<slug>/<round>/
content_url KRADAN_CONTENT_URL null A separate content host
signed_ttl KRADAN_SIGNED_TTL 240 Minutes a content URL stays valid
brand KRADAN_BRAND, KRADAN_LOGO, KRADAN_ACCENT app name
theme KRADAN_THEME kradan kradan, workbench or a token map, see below
redirect_guests_to KRADAN_LOGIN_ROUTE login Route name or URL a guest is sent to; null 403s
presence KRADAN_PRESENCE auto auto, reverb, polling or off
uploads.max_kb KRADAN_UPLOAD_MAX_KB 20480 Largest image or file a user may add
uploads.types images, pdf, office, csv, txt, zip Allowed file extensions
tokens KRADAN_TOKEN_HASHES none sha256 hashes, comma separated
locale KRADAN_LOCALE th th or en

Theme

The board is green by default. To match your app, pick another theme or override its tokens in config/kradan.php. Tokens are the board's CSS custom properties without the leading --:

Values must be a colour (#hex, rgb(), hsl(), oklch(), a keyword) or a length (260px, 1.5rem). Anything else is dropped before it reaches the page, and kradan:doctor names it. brand.accent still colours the workspace badge.

Translations

Thai is the default. Publish the language files to change the wording:

Testing

Licence

MIT. See LICENSE.md.

ผู้พัฒนา

พัฒนาและดูแลโดย บริษัท ภัทรชัย อาร์ทิซาน จำกัด (Phattarachai Artisan) บริษัทที่ปรึกษาและพัฒนาเว็บ ที่เรียนรู้และแบ่งปันกับชุมชน Laravel แพ็กเกจนี้แบ่งปันให้ชุมชนนำไปใช้และต่อยอดได้อย่างอิสระ

ดูแพ็กเกจอื่นของเราได้ที่ phattarachai.dev/open-source และติดต่อเราได้ที่ phattarachai.dev


All versions of laravel-kradan with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-dom Version *
ext-zip Version *
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support 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 phattarachai/laravel-kradan contains the following files

Loading the files please wait ...