Download the PHP package helllomatt/aspen without Composer

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

ASPEN

Aspen is and API manager and router. Make a request, and it will handle where to go for processing and returning information.

Installing

Setting up

You need to create an index file for your project. This will load your config file and also the api endpoints you would like to use.

index.php

If you're using Apache, a .htaccess file is required for clean routing.

.htaccess

If you're using Nginx, you need to modify your site configuration.

[todo]

Creating endpoints

Modules, plugins, addons, or whatever you call them are the separated endpoints to your API. When you define the modules to load in the index file you created above, everything there is an absolute path. The modules/ folder is just a suggestion, you can organize it however you want.

Create the modules/ folder then inside of there create a sample/ folder, leaving the full path to [ROOT]/modules/sample/.

There's a required file for an API called controller.php. That does what you think it does, controls the routing.

controller.php

Create the API object, which is just that. Then set the version. The version is important for when an endpoint is called, the version is looked at. (e.g. localhost/some-api/v1/get is different than localhost/some-api/v2/get)

Then you create your endpoints, or places that can be accessed.

Lastly and most importantly you need to return the API object out of the file. An example of the innerworkings for this are $api = (include 'controller.php');. That lets ASPEN access the API object and work with it when routing.


All versions of aspen with dependencies

PHP Build Version
Package Version
Requires php Version >=5.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 helllomatt/aspen contains the following files

Loading the files please wait ....