Download the PHP package ocdladefense/appserver without Composer

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

Appserver

A PHP application server. This application server can be used to demonstrate several RFCs, especially those concerned with HTTP, i.e., RFC 1945 (https://datatracker.ietf.org/doc/html/rfc1945).

Current changes

System Requirements

1) Windows: Working WAMP Installation 2) Apache2 3) PHP >=7.3 with php-curl, php-xml-dom and others 4) MySQL server 5) Composer (https://getcomposer.org/)

Composer

Composer is a package manager for PHP. Appserver includes composer.json and composer-dev.json files that reference any required packages. Composer can install these packages; typically you use composer update or composer install to download any required packages.

INSTALLATION NOTES

Description

If WAMP is already installed you can confirm that you have a half-way decent environment by turning the Apache webserver on, locating your Apache document root and creating a "Hello World!" sample.php file. Open it in a web browser by using the reserved "localhost" domain, i.e., http://localhost/path-to-simple-file/index.php. If it works you're on the right track.

Overview

We use the required applications to install an environment that this repo can run in. As this is a PHP application, a LAMP/WAMP stack is required. Installing an application like this involves configuring this environment, downloading any additional packages (or their dependencies), identifying the names and locations of configuration files, understanding how the configuration files change the environment, confirming that your configuration changes are effective and finally creating a hostname to reference the site in your preferred web browser.

Configuration

PHP and Apache will likely need to be further configured, especially to load the latest version of mod_php (the PHP module for Apache), to change any necessary runtime settings for both Apache and PHP, and especially to configure the Apache document root for this application.

Once that's done we still need to configure the appserver itself. Check config/ in this repo for the relevant settings and examples.

Installation Steps

Install the Composer package manager:

Step #1 - Clone this repository into your web root.

Step #2 - Composer - install the dependencies using a console/terminal application.

Resolve dependencies --> For example, if php-curl is not installed, run: sudo apt-get install php7.2-curl (linux) or enable the appropriate module using WAMP

Step #3 - Run composer update (again) c:\wamp64\www\appserver $> composer update Loading composer repositories with package information

Step #4 - Create a config/config.php file --> copy the config-example.php file to config.php

Step #5 - Create an apache virtual host --> modify the DOCUMENT_ROOT setting appropriately

Step #6 - Create an .htaccess file --> modify the RewriteRule target path with a prevailing forward slash that is to be interpreted as being relative to the DOCUMENT_ROOT setting (above)

Step #7 - Test a route --> Test one of the provided routes or clone the example module to get a simple route.

Specific Configurations

Apache

Enable alias, directory, headers and any other necessary Apache modules.

Using HTTP

Appserver has built-in classes to send HTTP Requests and receive HTTP Responses.

use Http\HttpRequest as HttpRequest;

use Http\HttpResponse as HttpResponse;

Fetch the New York Times homepage. "All the news that's fit to print." $url = "https://nytimes.com";

Init an http instance for sending requests;

include any necessary configuration options.

$config = array(); $http = new Http($config);

The request.

See HTTP/1.1 Request(https://www.w3.org/Protocols/rfc2616/rfc2616.html) for more info.

$req = new HttpRequest($url);

Sending the request returns a Response.

See HTTP/1.1 Response(https://www.w3.org/Protocols/rfc2616/rfc2616.html) for more info.

$resp = $http->send($req);

See what's in this message.

echo $resp->getBody();


All versions of appserver with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.0
ocdladefense/lib-oauth-config Version ~2.0
ocdladefense/lib-drag-drop-upload Version dev-development
ocdladefense/appserver-directory Version dev-development
ocdladefense/appserver-jobs Version dev-development
ocdladefense/appserver-car Version dev-development
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 ocdladefense/appserver contains the following files

Loading the files please wait ....