Download the PHP package antonioprimera/laravel-site-components without Composer

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

Useful reusable components for laravel sites

Latest Version on Packagist

This package provides a set of useful reusable components for laravel sites, based on the antonioprimera/larave-site package.

The laravel-site package introduces the Site, Page, Section and Bit models, which hold the contents of a site. The laravel-site package is view agnostic, and only provides abstract view component classes, used to build concrete view components.

This package provides some useful prebuilt components, that you can use in your site.

Installation

You can install the package via composer:

Scaffolding commands

Scaffold the layout

You can scaffold the layout components by running the following command:

This will generate the following View Components: OuterLayout, GuestLayout, GuestNav and the css file for the guest nav.

Prebuilt components

The package provides a set of prebuilt components that you can use in your site. The prebuilt components are focused on handling the rendering of sections and bits (see the antonioprimera/larave-site package for more information on sections and bits).

SectionContainer

This is a simple container component, providing a responsive layout for sections, with a max width and some horizontal padding. It does not have any props. It comes with some default tailwind classes for styling, but you can override the styling by creating a 'section-container' class in your css.

SectionTitle

This is a title component for a section, rendering a heading tag with the section title. The component has no styling. You can style it, by defining a 'section-title' class in your css.

Props:

Image

This is an image component, rendering a responsive spatie media model. The component accepts a media model, a section model or a bit model as a prop. The component has no styling. You can style it, by defining a 'site-image' class in your css. If the media model is not provided, the component will render a placeholder svg image.

Props:

Nav

This is a basic navigation component, rendering a responsive site nav bar. The component accepts a NavItemCollection as a prop (a collection of NavItem instances). The component has some basic styling, but you can style it, by publishing the css file and overriding the default styles.

Props:

Alternatively, you can inherit the Nav component class and override the navItems() method, to provide the navigation items for the nav bar.

Contributing

Feel free to contribute to this package by creating a pull request. Just please keep in mind the following guidelines:

License

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


All versions of laravel-site-components with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version >=11.0
antonioprimera/laravel-site Version ^v1.0
antonioprimera/md-parser Version ^1.2
spatie/laravel-package-tools Version ^1.16
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 antonioprimera/laravel-site-components contains the following files

Loading the files please wait ....