Download the PHP package esanj/layout-master without Composer

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

🌟 Esanj Layout Master (Vuexy)

A Laravel scaffolding package that drops a ready‑made, Vuexy‑inspired admin layout into your app: a master Blade layout, header/menu/footer sections, reusable components, a permission‑aware dynamic menu, and the Vite/SCSS build configuration.

Everything is published into your project so you fully own and can customize it. The package itself only ships the files and one install command — it registers no routes or runtime views.

Supports: Laravel 10 · 11 · 12 · 13 — PHP 8.2+


✨ Features


⚠️ Important: this is a Vuexy scaffold, not the full theme

This package provides the layout, components, menu, and build config — plus a handful of source assets (config.js, main.js, demo.css, CodeMirror SCSS). It does not bundle the full Vuexy theme source.

The published head/scripts sections and vite.config.js reference the Vuexy theme tree at resources/assets/vendor/... (core SCSS, fonts, and JS libs like Bootstrap, SweetAlert2, Select2, …). You must supply that resources/assets/vendor/ tree yourself (from your Vuexy purchase). Without it, npm run build/dev will fail on missing files.

In short: install this package into a project that already has the Vuexy assets, or add them before building.


📋 Requirements


📦 Installation

The installer asks before overwriting any existing package.json / vite.config.js / postcss.config.js, then publishes everything. Use --force to overwrite without prompts:

Then build the front‑end:


🗂️ What gets published

Publish tag From (package) To (your app) Contents
esanj-layout-master-views resources/views resources/views layouts/master, sections/*, components/*
esanj-layout-master-menu resources/menu resources/menu admin.json (the menu definition)
esanj-layout-master-assets resources/assets resources/assets css/demo.css, js/*, scss/*
esanj-layout-master-public public public/assets/vendor/layout-master images/logo-esanj.png, images/null.png
esanj-layout-master-static static project root package.json, vite.config.js, postcss.config.js
esanj-layout-master-components Components app/View/Components Menu.php, SubMenu.php

layout-master:install publishes all of these at once. You can also publish a single group:


⚙️ Using the layout

Make your pages extend layouts.master and fill in the sections:

Available sections: title, vendor-style, page-style, content, vendor-script, page-script. The navbar, menu, and footer are included for you.

The page <title> is @yield('title') | {{ trans('app.brand_name') }}, so define brand_name in your app's lang/{locale}/app.php (or change the title in resources/views/layouts/master.blade.php).


🗂️ The menu system

The menu is a JSON file at resources/menu/admin.json with a top‑level menu array:

Item fields:

Field Required Purpose
name yes Label. Passed through __(), so it can be a translation key.
url no Link target (url() is applied). Omit for a parent that only opens a submenu.
icon no Full CSS classes for the icon.
slug no Matched against the current route name to mark the item active.
permission no If set, the item shows only when the manager has this permission (esanj/managers).
target no e.g. "_blank" for external links.
badge no ["color", "text"], e.g. ["primary", "3"].
submenu no Array of child items (nested to any depth).

🔒 The menu requires an authenticated manager. A parent whose children are all hidden by permissions is hidden too.


🧩 Components

After publishing, these components are available in any Blade view:

Component Purpose
<x-menu /> Renders the permission‑filtered main menu.
<x-sub-menu :data="$items" /> Renders a submenu (used internally by <x-menu>).
<x-alert-message :type="'success'" :content="'Saved!'" /> A Bootstrap alert. Types: success/danger/warning/info/primary/secondary/dark.
<x-error field="email" /> Shows validation errors for a field (and field.*).

The master layout also renders a flash alert automatically when you flash a message:


🎨 Customizing

📖 For a complete, beginner‑friendly, step‑by‑step walkthrough — adding a page, wiring a menu item, building assets, and customizing — see docs/GUIDE.md.


🪪 License

MIT © eSanjDev


All versions of layout-master with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3|^8.4
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
esanj/managers Version >=1.0.0 <2.0.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 esanj/layout-master contains the following files

Loading the files please wait ...