Download the PHP package flightphp/skeleton without Composer

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

Flight PHP Skeleton App

Use this skeleton application to quickly setup and start working on a new Flight PHP application. This application uses the latest version of Flight PHP v3.

This skeleton application was built for Composer. You also could download a zip of this repo, downloading a zip of the flightphp/core repo, and manually autoload the files by running require('flight/autoload.php') in your app/config/bootstrap.php file.

Installation

Run this command from the directory in which you want to install your new Flight PHP application. (this will require PHP 7.4 or newer)

Replace cool-project-name with the desired directory name for your new application.

Robust Setup of the Application

This skeleton will come with 2 versions of a starter application. The robust version is a fully structured application meant for projects that you anticipate will be a bigger size. This is setup with object oriented programming in mind so that it is easier to unit test and scale your project with multiple developers (or make it easier on yourself).

The robust version adds an app/ directory where everything has a basic structure. This is how this skeleton is configured by default.

One additional thing you'll need to do is copy the app/config/config_sample.php file to app/config/config.php and update the values to be correct for your environment.

Simple Setup of the Application

This is basically a single file application. The only exception to this is the config file which is still in the app/config/ directory. This is a good starting point for smaller projects or projects that you don't anticipate will grow much.

To use the simple version, you'll need to copy the app/config/config_sample.php file to app/config/config.php. Then you'll need to move the index-simple.php file to the public/ directory and rename it to index.php. You can delete any other controllers, views, or config files (except the config.php file of course).

With the simple setup, there is two very import security steps to be aware of.

This is what the config file is for. If you need to save sensitive credentials, save them to the config file and then reference them in the index.php file.

Running the Application

No Dependency Setup

To run the application in development, you can run these commands

After that, open http://localhost:8000 in your browser.

Note: If you run into an error similar to this Failed to listen on localhost:8000 (reason: Address already in use) then you'll need to change the port that the application is running on. You can do this by editing the composer.json file and changing the port in the scripts.start key.

Docker Setup

You can install Docker and use docker-compose to run the app with docker, so you can run these commands:

After that, open http://localhost:8000 in your browser.

Vagrant Setup

You can install Vagrant and a provider like VirtualBox and use simple run the following command to bring up an environment with PHP/MariaDB already setup based on n0nag0n/firefly

After that, open http://localhost:8000 in your browser.

Do it!

That's it! Go build something flipping sweet!


All versions of skeleton with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-json Version *
flightphp/core Version ^3.0
flightphp/runway Version ^0.1.0
tracy/tracy Version ^2.9
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 flightphp/skeleton contains the following files

Loading the files please wait ....