Download the PHP package phwoolcon/bootstrap without Composer

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

Phwoolcon Bootstrap

Phalcon + Swoole

Demo


The Bootstrap provides directory structure for running Phwoolcon.

The purpose of this project is to create a high performance web application,
which can run in traditional php-fpm mode and service mode.

In service mode, you gain extreme speed for your application,
by reducing lot of unnecessary and repetitive computing.

If you have bugs in service mode, you can easily turn off the service mode,
you lose some speed (but still fast) to gain more stability, fix bugs and apply service mode again.

1. System Requirements

2. Usage

2.1. Create Working Directory

2.2. Import Packages

Please DO NOT edit composer.json directly, that will break framework update.

Use bin/import-package to create composer.local-*.json instead,
composer.local-*.json is isolated from the framework itself.

For example:

Please see Composer Merge Plugin (by Wikimedia) to learn more about composer.local-*.json.

Demo: Phwoolcon Demo.

2.3. Organize Your Project Codes

All project codes will be organized as composer packages.

NEVER put your codes into the app/ directory, that make it complicated to implement modularization.

2.3.1 Create a Phwoolcon Package

Run:

This tool will ask you to input some basic information, for example:

Then the package is there under the vendor directory, with git initialized,
remote repository added, it is all ready for you to commit and push the files.

Now you have a private composer repository, your first Phwoolcon package.

If you want to share it to others, you can publish it on GitHub and Packagist.

2.3.2. Import Your Package

Now you can import your newly created package.

See 2.2. Import Packages

2.3.3. Update Codes

This script will do:

2.4. Phwoolcon Configuration

Project configuration files are symlinked from packages into app/config directory.

please DO NOT edit them directly.

2.4.1. Apply Environment Configuration

Adding new copies into app/config/{$environment}/ to override default values.

{$environment} is the runtime environment name, by default production.

You can change this name by setting $_SERVER['PHWOOLCON_ENV'].

2.4.2. Add Custom Configuration Files

Return to your project package (i.e. vendor/my/project),
you may add new configuration files under phwoolcon-package/config/.

Then run bin/dump-autoload to symlink it to app/config.

Get the config values in your codes, for example:

Config file phwoolcon-package/config/key.php

In your code:

IMPORTANT Please DO NOT create config file with the default names.

2.5. Modularization

Code reusing, modularization, the implementation is not as simple as it looks,
have you ever copy-pasted such "modules" among projects?

Phwoolcon makes it simple:

IMPORTANT Any private repositories MUST be declared in the repositories section
in the file composer.local.json, which was created in step 2.3.1 Create a Phwoolcon Package

2.6. Build / Deploy

It was a pain to deploy projects that used composer, because:

Phwoolcon solved this problem, by packing the whole working directory,
then commit them into a new release branch.

2.6.1. Build

The build script will create ignore/release directory, which is
ready to be pushed to the production environment.

Push them to your project repository, in branch release.

2.6.2. Deploy

2.6.2.1. Manual Deployment

Let's take rsync as an example:

2.6.2.2. Auto Deployment

Please see Deploy Automator

2.7. Service Mode

2.7.1. Enable Service Mode

To enable service mode, please set CGI parameter USE_SERVICE to 1.

2.7.2. Start Service

To start the service, please run:

Now the phwoolcon service handles your site.

To stop the service, please run:

Now your site is still available in php-fpm mode.

2.7.3. Install As System Service (Incomplete)

Run this command to install your project as a system service:

Then you can start/stop/restart/reload your service by:

To uninstall the service:

3. Spirits

4. Features

4.1. Base Components

4.2. Specific Components

5. Credits

Phwoolcon Bootstrap uses third-party libraries or other resources that
may be distributed under licenses different than Phwoolcon, please
check Credits for details.

6. License

Phwoolcon Bootstrap is licensed under the Apache License 2.0

中文


All versions of bootstrap with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
phwoolcon/phwoolcon Version ~1.0
wikimedia/composer-merge-plugin Version ~1.3
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 phwoolcon/bootstrap contains the following files

Loading the files please wait ....