Download the PHP package webstronauts/unpoly without Composer

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

Unpoly

Latest Version on Packagist Build Status StyleCI Total Downloads

Stack middleware for handling Javascript Unpoly Framework requests.

Sponsored by The Webstronauts

Installation

You can install the package via Composer.

Usage

You can manually decorate the response with the Unpoly object.

Stack Middleware

You can decorate the response using the supplied Stack middleware.

Laravel

To use the package with Laravel, you'll have to wrap it around a middleware instance.

Now use this middleware as described by the Laravel documentation.

Validation Errors

Whenever a form is submitted through Unpoly, the response is returned as JSON by default. This is because Laravel returns JSON formatted response for any request with the header X-Requested-With set to XMLHttpRequest. To make sure the application returns an HTML response for any validation errors, overwrite the convertValidationExceptionToResponse method in your App\Exceptions\Handler class.

Other HTTP Errors

If your Laravel session expires and a user attempts to navigate or perform an operating on the page using Unpoly, an abrupt JSON error response will be displayed to the user:

To prevent this, create your own Request and extend Laravel's built-in Illuminate\Http\Request, and override the expectsJson method:

Then, navigate to your public/index.php file, and update the usage:

Now when a user session expires, the <body> of your page will be replaced with your login page, allowing users to sign back in without refreshing the page.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

As it's just a simple port of Ruby to PHP code. All credits should go to the Unpoly team and their unpoly gem.

License

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


All versions of unpoly with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
symfony/http-foundation Version ^4.4|^5.4|^6.0
symfony/http-kernel Version ^4.4|^5.4|^6.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 webstronauts/unpoly contains the following files

Loading the files please wait ....