Download the PHP package weerd/apollo-pages without Composer

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

Laravel Apollo Pages

Create & Manage Simple Static Pages

Build Status Latest Stable Version License

Introduction

Apollo Pages is a package for Laravel that provides scaffolding and functionality for generating and presenting static pages in a plug-and-play, CMS-like fashion.

The package sets up a very bare-bones administrative interface that is specifically designed to help with creating and managing simple static-content pages and subpages, written in markdown without the need to define any custom routes.

The administrative interface is entirely just HTML so it can be customized to your liking. Developers can publish the package views to their project and fully customize them as needed.

It all works fine out of the box, it just needs a fresh coat of paint. I highly recommend using something like Tailwind CSS, Bootstrap, rolling your own or integrating it into your existing administration interface styles.

Installation

Step 1: Composer

From the command line, run:

Step 2: Service Provider

Within your Laravel project, open config/app.php and, at the end of the providers array, include the ApolloPagesServiceProvider.

For example:

Important note: this will bootstrap the package into Laravel. To have ApolloPages work correctly and behave as a catch all for routes specifiying custom pages, the routes for the package need to be considered after the main application routes defined in /routes/web.php. For this behavior, the ApolloPagesServiceProvider needs to be defined at the very end of the providers array.

Step 3: Migrate

Next, run the migration to add the pages table to your database:

Step 4: Confirmation

This step is optional, but if you would like to confirm that the installation is working and the package routes are registering as expected, load up your project in a browser and head to yourproject.test/status/apollo (replace yourproject.test with the URL for your project).

You should see this JSON response confirming all is well:

Customization

Publish Vendor Files

The ApolloPages package makes use of the artisan publish command to allow user's to publish some of this package's files to their project so that they can easily be overridden and customized by the package user.

You can publish all available publishable package files to your project by running:

Alternatively, you can publish just the view files to your project by running:

For a third option, as of Laravel 5.5 you can use the provider prompt to select which provider or tag's files to publish by running:

And then follow the prompt.

Usage

Once everything is setup, authenticate as an admin into your application and then head to yourproject.test/admin/pages to create and manage your static pages.

The default ApolloPages\Http\Controllers\Admin\PageController.php which controls the administration of pages utilizes the auth middleware, so you will need to have an authentication system setup to use it.

You can easily do this by running php artisan make:auth on a fresh Laravel application. However, you can also override this behavior by just creating your own administrative page controller and extending ApolloPages\Http\Controllers\Admin\PageController.php to modify or extend its functionality.

Anyhoo, the world is your oyster, so go wild!

Creating Pages

On the "pages" index at yourproject.test/admin/pages, click on the "Add new page" link to head to the admin/pages/create view which has the following fields:

Fill out the fields and submit the form to create the new page. You can then click to view this newly created page from the /admin/pages index list of pages.

You can create as many top level pages or subpages as you desire.

Enjoy!

Credits

License

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


All versions of apollo-pages with dependencies

PHP Build Version
Package Version
Requires erusev/parsedown Version ^1.7
illuminate/console Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
illuminate/database Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
illuminate/routing Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
illuminate/support Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
php Version ^7.2.5
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 weerd/apollo-pages contains the following files

Loading the files please wait ....