Download the PHP package samojled/php-caddy without Composer

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

PHP Caddy

Introduction

PHP Caddy is a tiny PHP development environment for Windows, inspired by Laravel Valet.

No hosts file, no configuration, no frills. Just run it and go write some code.

PHP Caddy is basically a stripped down Valet: no *.dev domain proxy (only localhost), no linking multiple sites or parked directories, and no sharing over local tunnels. It also doesn't require elevated privileges to run like some of the other Windows alternatives, which can make things easier for people in corporate environments.

Built with Caddy web server, PHP Caddy also includes Mailhog for catching email sent by your application.

This package is for minimalists. It does not have the full feature set of Valet, and it doesn't provide the robust features of a virtualized environment like Homestead.

Requirements

502 Bad Gateway

There seems to be an issue with long-running php-cgi.exe processes in PHP 7.0 and earlier on Windows. The process randomly crashes after a period of time, causing a 502 Bad Gateway in PHP Caddy.

PHP 7.1 introduced the ability to run multiple php-cgi.exe processes, which seems to alleviate this problem.

If you are getting frequent 502 Bad Gateway errors, try upgrading to PHP 7.1 and make sure you're running the latest PHP Caddy by running composer global update.

If you can't upgrade PHP, then you can restart PHP when this happens using caddy service php restart.

Installation instructions

Usage

Make sure your global composer vendor/bin folder is in your system path.

Start it up

Shut it down

Switch directories (serve a different project)

Control individual services

Available Commands

Command Description
caddy install Install PHP Caddy services
caddy link Link Caddy to the current directory
caddy start Start the Caddy services and Link the current directory.
caddy start --without-mailhog For a slightly lighter resource footprint
caddy stop Stop the Caddy services
caddy which Determine which Valet driver serves the current working directory
caddy uninstall Remove PHP Caddy services
caddy service [service] [command] Start/Stop/Restart individual services

Supported Frameworks and Applications

PHP Caddy comes with the same default set of drivers as Valet, so out of the box it supports:

Custom Valet Drivers

You can write your own Valet driver to support PHP applications not in the list above, in the same way you can with Laravel Valet.

When you install PHP Caddy, a ~/.phpcaddy/Drivers directory is created which contains a SampleValetDriver.php file you can use as a guide. To use your custom driver, either place it in the ~/.phpcaddy/Drivers directory, or in the root path of your project, and it will be picked up by PHP Caddy.

See more info on creating custom drivers in the Laravel Valet docs: Custom Valet Drivers

Upgrading

You can update PHP Caddy using the composer global update command. After upgrading, you may need to run caddy install to make any necessary configuration changes.

License and Attribution

Parts of the original Laravel Valet source code were used in whole or in part in building this project, and are covered under the original Valet License

The Caddy and Mailhog binaries are covered under their respective licenses.

PHP Caddy is Copyright (c) 2017 Dave Samojlenko and licensed under the MIT license

Powered by Caddy


All versions of php-caddy with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
mnapoli/silly Version ~1.0
symfony/process Version ~2.7|~3.0
mnapoli/silly-php-di Version ^1.1
tightenco/collect Version ^5.2
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 samojled/php-caddy contains the following files

Loading the files please wait ....