Download the PHP package marshmallow/pages without Composer

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

alt text

Laravel Nova Pages

Version Total Downloads Issues Licence PHP Syntax Checker

This package provides you with the ability to easily create and manage pages and their content in Laravel Nova. It is essentially a curated bundle of handy Composer packages — both third-party and Marshmallow's own — combined so they can be reused quickly. The page body is built with marshmallow/nova-flexible layouts and is rendered to your front-end via a Blade view.

Requirements

The package pulls in a number of Marshmallow packages it builds on, including sluggable, seoable, translatable, redirectable, nova-flexible, nova-multiselect-field and nova-fontawesome. These are installed automatically via Composer.

Installation

Composer

You can install the package via composer:

Install for Nova 4

If you are using Nova 4, you can install the package using the command below.

Run the artisan command

Publish the configs from the Flexible package, migrate to create the pages table, create your Laravel Nova resource to manage your pages, and register the page routes in routes/web.php. This is all handled by a single install command:

Under the hood pages:install publishes the package's assets, publishes the Flexible field assets, runs migrate, generates a Page Nova resource, and appends \Marshmallow\Pages\Facades\Page::routes(); to your routes/web.php.

Usage

You can add {!! Page::render($page) !!} to your blade file to render the layouts that are connected to the page. You can also loop through them yourself if that is helpful, like:

The Page facade also exposes a few helpers:

Add a new layout

You can generate new layouts via the command provided by the marshmallow/nova-flexible package that is included in this package. Run the command below to generate a new layout.

Next you will need to add the newly generated layout to your flexible config.

Configuration

After running pages:install (or publishing manually with php artisan vendor:publish --provider="Marshmallow\Pages\PagesServiceProvider"), the config file is available at config/pages.php. The available options are:

Key Default Description
database.connection null Database connection used for the pages table. null uses the default connection.
view marshmallow::layout The Blade view used to render a page.
wysiwyg env('NOVA_WYSIWYG', \Laravel\Nova\Fields\Trix::class) The Nova field class used for WYSIWYG content.
model \Marshmallow\Pages\Models\Page::class The Eloquent model representing a page. Override to use your own.
middleware \Marshmallow\Pages\Http\Middleware\PageMiddleware::class Middleware applied to every page route.
controller \Marshmallow\Pages\Http\Controllers\PageController@show The controller action that handles page requests.
nova_translatable_fields true Show the language selector when editing a resource in Laravel Nova.
share_page_to_view_data false When enabled, the full page is shared with all your view components.
use_multi_languages false Enable when using Marshmallow's Translatable package to load translated routes and resolve pages by a translated slug.
breadcrumb false Whether pages should be added to the Marshmallow Breadcrumb stack.
flexible_config [] Extra config loaded by the Flexible package to change its default behaviour.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of pages with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
marshmallow/sluggable Version ^1.9
marshmallow/helpers Version ^2.19
marshmallow/commands Version ^1.2
marshmallow/seoable Version ^5.1
marshmallow/translatable Version ^5.0
marshmallow/redirectable Version ^5.0
marshmallow/nova-flexible Version ^5.1
marshmallow/nova-multiselect-field Version ^5.0
marshmallow/nova-fontawesome Version ^2.1|^3.0
laravel/nova Version ^5.0
laravel/helpers Version ^1.7
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 marshmallow/pages contains the following files

Loading the files please wait ...