Download the PHP package saakiiib/laravel-spa without Composer

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

Laravel SPA — by Sakib

By default, every link click in Laravel loads a full new page — HTML, CSS, JS, fonts, everything re-downloads. SPA navigation skips that. Only the content changes, the rest stays. Faster, smoother, no white flash between pages.

Most Laravel SPA solutions force you to either abandon Blade entirely (Inertia) or add jQuery (pjax). This package adds that same speed on top of your existing Blade views — no rewrite, nothing changes except how fast it feels.


Quick Start

Add /public/vendor to your .gitignore to avoid committing published assets.

Updating? When you run composer update, the published spa-engine.js in public/vendor/ does not auto-update — Composer only updates the package source, not previously published assets. Re-publish with the --force flag to pull the latest fix/version in:

Skipping this means you'll keep running an old spa-engine.js even after upgrading the package version.


Setup — @extends / @section

1. Layout file

Add @spaContent to your content wrapper and @spaEngine before </body>. Make sure @yield('script') comes after @spaEngine.

2. Navigation links

Add @spa to links you want SPA navigation on. Links without @spa do a normal full reload.

3. Controller

4. Page views — no changes needed


Setup — x-layout components

1. Layout component

Add @spaContent to your content wrapper and @spaEngine before </body>.

2. Navigation links — same as above, add @spa:

3. Controller — same as above:

4. Page views


What works out of the box


Requirements


Contributing

Found a bug or want to improve something? PRs are welcome on GitHub.


License

MIT — Sakib


All versions of laravel-spa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 saakiiib/laravel-spa contains the following files

Loading the files please wait ...