Download the PHP package sinevia/php-serverless without Composer

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

PHP SERVERLESS FRAMEWORK

The first and fully functional PHP framework built exclusively for serverless. Support for IBM Cloud Functions

Build status GitHub stars HitCount

FEATURES

INSTALLATION

  1. Step 1

  2. Step 2

AFTER INSTALLATION

WORKFLOW

Four environments are specified and available out of the box - local, testing, staging, live.

  1. Local. All development is done on local - (local)
  2. Testing. Automatic tests are run in testing - (testing)
  3. Staging. For user and manual testing depoy to staging - (staging)
  4. Live. For real live usage deploy to live - (live)

DEVELOPMENT

To start working on the project run the built in PHP server:

or using the helper function

Then open in browser: http://localhost:32222/

or using the helper function

DATABASE

To run migrations for each environment:

DEPLOYMENT

The deployment will run your tests, and will continue only if your tests are successful

To deploy to your staging function

To deploy to your live function

HELPER FUNCTIONS

A RoboFile exists with automated functionality.

TESTING

Two testing frameworks supported out of the box:

  1. Testify.php - very lean and straghtforward to work with (preferred, and preinstaled)
  2. PHPUnit - more mature, but heavy weight with many dependencies

To decide which modify the setting in the RoboFile.

Testing with Testify.php

Testify is a small PHP testing library with no extenal dependencies: https://github.com/BafS/Testify.php

Place your tests in /tests/test.php

To run the tests

or

Testing with PHPUnit

PHPUnit is a huge PHP testing library. Beware it will come with lots of composer dependencies: https://phpunit.de/

To install the framework with all the dependencies

Place your settigs in /phpunit.xml. Place your tests in /tests

To run the tests

or

SERVING STATIC FILES

Multiple options

Local CSS and JavaScript files are best to be served minified inline. Helper functions are added

Small images (i.e. favicon) serve inline as data.

To serve static files separately place them in the public directory.

For remote static files use CDN, S3 or other storage.

FUNCTIONS

Functions are defined in file /app/functions.php. Feel free to change or remove.

basePath($path = '')

Returns the top most (root, base) path of the application

baseUrl($path = '')

Returns the top most (root, base) URL of the application

db()

Returns a database instance

env($key, $default = '')

Returns an env variable from OPEN WHISK

htmlFormatPriceWithCurrencySymbol($amount, $currency)

image2DataUri($imagePath)

Converts an image path to data URI

isGet

Checks if this is a GET request

isPost

Checks if this is a POST request

joinCss($styles, $options = [])

Joins multiple CSS files, and optionally minifies them

joinJs($scripts, $options = [])

Joins multiple JavaScript files, and optionally minifies them

redirect($url)

Redirects to the specified URL

req($name, $default = null, $functions = [])

Returns the requested $_REQUEST name-value pair if it exists

sess($name, $default = null, $functions = [], $options = [])

Returns the requested $_SESSION name-value pair if it exists

once($name, $default = null, $functions = [], $options = [])

Returns a once value if it exists in $_SESSION. After the value is returned, it is deleted

function reqOrSess($name, $default = null, $functions = [])

ui($view, $vars = array(), $options = array())

Renders a template from app/views. If no extension is specified .phtml is added

view($view, $data)

Renders a Blade template from /views. A /cache folder is required. If using Eloquent for data management this function will clash, delete it, or rename it i.e. to uiBlade($view, $data).

To use the view function you must install Blade:


All versions of php-serverless with dependencies

PHP Build Version
Package Version
Requires dg/composer-cleaner Version ^2.1
illuminate/database Version ^6.3
jenssegers/blade Version dev-master
mrclay/jsmin-php Version >=2.4.0
phroute/phroute Version >=v2.1.0
sinevia/php-library-api Version ^1.1
sinevia/php-library-migrate Version >=v1.3.0
sinevia/php-library-registry Version >=v2.8.0
sinevia/php-library-serverless Version >=v1.7.0
sinevia/php-library-sqldb Version >=v3.8.0
sinevia/php-library-sqldb-cache Version ^1.2
sinevia/php-library-template Version >=v1.4.0
sinevia/php-library-uid Version ^1.8
sinevia/php-library-utils Version >=v2.7.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 sinevia/php-serverless contains the following files

Loading the files please wait ....