Download the PHP package carlson/nova-simple-content without Composer

On this page you can find all versions of the php package carlson/nova-simple-content. 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 nova-simple-content

Nova Simple Content

Purpose

This is a simple package for managing simple content. If all you need is to simplify the boilerplate of setting up Nova resources for things like blog posts and pages with total control over the view, this is for you. If you want complex hierarchical categorization and deep control over the post and page models then this package likely isn't a good fit.

Requirements

  1. >= Laravel 8
  2. >= Laravel Nova 3

Features

  1. Nova resource pages for Posts and Pages
  2. Independently configurable caching for Posts and Pages
  3. Event driven caching based on resource Update and Delete
  4. Unopinionated view templates – write your own!
  5. Configurable Page and Post route prefix (such as /blog, /content)
  6. 100% test coverage

Installation

  1. composer require carlson/nova-simple-content
  2. To copy the views for editing: php artisan vendor:publish --tag=nova-simple-content-views
  3. To copy the config to customize caching and routes: php artisan vendor:publish --tag=nova-simple-content-config
  4. To set up the required tables: php artisan migrate

Config

The following values may be configured in the nova-simple-content.php config file:

  1. cache_posts: Turns caching on or off for Posts. Default is true
  2. cache_pages: Turns caching on or off for Pages. Default is true
  3. post_list_url: The route for the post list. Default is '/blog'
  4. post_detail_slug_prefix: The route prefix for posts, e.g. the '/blog' in /blog/test-slug. Default is '/blog'
  5. page_slug_prefix: The route prefix for all pages, e.g. the '/content' in /content/test-slug. Default is '/content'

Caching

Caching of both Pages and Posts is turned on by default, but can be configured independently. To disable either Post or Page caching edit the corresponding value in the nova-simple-content.php config file.

Development

Contributions welcome! There is an included docker-compose.yml with containers for the correct version of PHP with required dependencies and database and cache containers for testing.

Installation

  1. Clone this repository.
  2. Ensure Docker is already installed on your machine.
  3. From the repository root run docker-compose up -d from your terminal.

Testing

All commits of PHP or JavaScript must be accompanied by corresponding tests. To run the test suite enter the running app container (docker exec -it nova_simple_content_app /bin/bash) and run composer test


All versions of nova-simple-content with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^8.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 carlson/nova-simple-content contains the following files

Loading the files please wait ....