Download the PHP package antonioprimera/laravel-site without Composer

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

A foundation to build configurable Websites using Laravel

Latest Version on Packagist

This package provides the basic building blocks to create a configurable website using Laravel and Filament as the admin panel, where you can maintain the text and images of your website.

It provides the following models:

All models have a uid attribute, used to identify and retrieve the models. The uid is a string that should be unique within the model type. For example, in order to identify a model, you would use the Site Facade or the helpers:

The Section and the Bit models have a single spatie media 'image', so you can easily associate images with them.

This package provides abstract classes for building Page, Section and Bit View Components, that can be used to render the models in your views. You can extend these classes to create your own View Components. You can use the following bash commands to generate new View Components:

Additionally, you can use the antonioprimera/laravel-site-components package to get some pre-built components and artisan commands to create new View Components for Sections and Bits.

The models use spatie/laravel-medialibrary to store images and spatie/laravel-translatable to make the title and contents translatable.

Installation

You can install the package via composer:

Publish the migrations and run them:

You can publish the config file with:

This is the contents of the published config file:

Usage

The package offers the following main features:

Create new data migrations

These migration files are stored in the database/site-migrations directory and can are run using the artisan migrate together with your standard laravel migrations.

You can use the SiteBuilder, PageBuilder, SectionBuilder and BitBuilder classes to create new models in your data migrations, which provide a fluent interface to create, update and delete the models.

Here's an example of a data migration file, which creates a Site, a Page and a Section model with 2 Bit models attached to it:

License

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


All versions of laravel-site with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version >=11.0
antonioprimera/laravel-generator-command Version ^3.0
spatie/laravel-medialibrary Version ^11.8
spatie/laravel-package-tools Version ^1.16
spatie/laravel-translatable Version ^6.8
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 contains the following files

Loading the files please wait ....