Download the PHP package ryancco/laravel-pages without Composer

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

This package has been archived. If you're looking for similar functionality, check out Laravel Folio.

Laravel Pages

Packagist GitHub Workflow Status Packagist

Laravel Pages allows for static pages to be served without the need to configure a route or controller and without having to version files in your public/ directory.

The primary purpose for this package is to allow designers who are comfortable with writing code to contribute to the same repository that developers will eventually be adapting their designs into. Allowing for one trail of version control history to step through and a more collaborative and inclusive workspace for the entire team without a higher barrier to entry.

There are also plenty of other use cases for such a package - anywhere you want to quickly scaffold and serve static files with the added abilities to leverage the blade compiler composing your pages and Laravel mix for building assets without having to create a new project.

This package has been heavily inspired by High Voltage by thoughtbot from the Rails world.

Usage

By default,

Though these are all configurable in the config/pages.php file.

Note: in order to use any session-dependent logic (i.e. the Auth or Session facades) or blade directives in your pages, such as anything related to the authorization status of a user (i.e. @auth, @guest) you must configure pages to use the web middleware group or the individual StartSession middleware.

With pages configured to your liking, if you were to create a view at resources/pages/about.blade.php you would be able to access this at http://your-app.com/pages/about. Without having to register a single route or create a single controller.

Routing

Pages can be routed to from within your application as you would any other dynamic page or route.

Alongside traditional routing methods leveraging relative/absolute paths and the url helper, there is also a page helper and Page facade which accept both slash and dot form paths.

Note: Because package routes are loaded last, you can set the route prefix to an empty string to allow for serving static pages from the top level alongside your application-defined routes. However, this may conflict with routes registered after this package is loaded (i.e. routes registered by other packages & routes registered outside your applications' route files).

License

Laravel Pages is licensed under the MIT License. Please see the LICENSE.md file for more information.


All versions of laravel-pages with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^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 ryancco/laravel-pages contains the following files

Loading the files please wait ....