Download the PHP package fkde/aspx without Composer

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

About this package

Transform your existing PHP Application into a deployable docker container based on Alpine Linux.

What you'll get

PHP Modules

Everything together is just as big as ~92.4Mb, which makes it ideal for fast and storage friendly CI/CD Pipelines. With npm and Node.js installed it is barely reaching ~150Mb.

Requirements

Installation

Composer

From your application root, call the following command:

After a few seconds you should be informed about the container being started. You should now be able to call https://localhost in your favorite browser.

When the installation finished you will notice a few changes in your project. There should be several new files and a folder added.

Added files

Entity Description
docker/: This folder contains your container definition. You can change anything you want and just run make install again afterward.
docker-compose.yml This file contains the service definitions for docker.
.env: Is created only when there is no .env present.
Makefile: This file provides a set of useful helpers, like a switch for Xdebug. Fore more information, take a look at the origin of this project: https://github.com/fkde/aspx

You are now theoretically able to develop your application within Docker. Practically, you'll probably need a database to store your visitors' data.

Attaching a Database

We can utilize the docker-compose.yml to get a database attached. Just uncomment the additional service and provide your credentials in the .env file.

If you had your own .env file before, just add the required variables to it.

Usage

Connect to the container

Activate Xdebug

Deactivate with:

How does this all work?

Mount

Your application is being mounted into the container and is then held in sync by Docker. Inside the container the path is /var/www, which is also the directory Nginx is pointing to.

Permissions

While building the container, a user is being created inside which is getting the same uid as your user. This means, everything being created by the container is handled as if it was you. That will reduce errors regarding different user permissions to nearly zero.

FAQ

Why do I need PHP on my Host Machine installed?

As this is a Composer package, and Composer itself depends on PHP this is something which is not that easy to achieve. However, it is planned to remove this dependency in the future by using another docker container with only php and composer to get the initial setup done.

Is it possible to run Laravel with this setup?

Yes of course, Laravel works like a charm with this setup. Just keep in mind that you need to have npm and NodeJS somewhere installed. It is possible to do that in the container though. It also decreases the resulting image size significantly (~124Mb instead of ~1.66Gb)

What does ASPX mean?

ASPX is nearly an acronym and stands for Alpine Supervisor PHP NginX.


All versions of aspx with dependencies

PHP Build Version
Package Version
Requires php Version >7.4
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 fkde/aspx contains the following files

Loading the files please wait ...