Download the PHP package benjam1/symfttpd without Composer

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

symfttpd - Build Status

Symfttpd is a command line tool to run a web server in your PHP project, aimed at lazy developers and sysadmins.

This version of symfttpd is under development, this documentation can be outdated or contain some errors.

spawn will setup and start a web server (lighttpd or nginx) with a minimal configuration to serve one PHP project. The server will not be run as a separate user, which is ideal for developers; also, the server logs will be written in the symfttpd's "log" directory and will include PHP errors.

genconf will generate all the rules necessary to setup a vhost in lighttpd. It leverages the include_shell directive which means no endless copy/pasting and easy updates (only restarting lighttpd is necessary).

Installation

Locally

As PHAR archive

Download the .phar file.

As requirement of your project

Add Symfttpd as a requirement of your project with Composer:

{
    …
    "require-dev": {
        "benjam1/symfttpd": "2.1.*@"
    },
    "config": {
        "bin-dir": "bin/"
    }
}

Then you can use Symfttpd running .

Globally

You can run these commands to install symfttpd globally:

$ sudo wget https://github.com/downloads/benja-M-1/symfttpd/symfttpd.phar -O /usr/local/bin/symfttpd
$ sudo chmod +x /usr/local/bin/symfttpd

Source

Clone this repository and checkout the latest tag.

benjamin:~/dev benjamin $ git clone git://github.com/benja-M-1/symfttpd.git
benjamin:~/dev benjamin $ cd symfttpd
benjamin:~/dev/symfttpd benjamin $ git checkout v2.0.0-dev

Install the vendors with composer

benjamin:~/dev/symfttpd benjamin $ curl -s http://getcomposer.org/installer | php
benjamin:~/dev/symfttpd benjamin $ php composer.phar install

Then compile symfttpd in your project to create an executable .phar file

In order to compile you have to set the phar.readonly setting to Off in you php.ini file.

benjamin:~/dev/project benjamin $ php box.phar build
benjamin:~/dev/project benjamin $ php symfttpd.phar --help
Usage:
 help [--xml] [command_name]

Arguments:
 command               The command to execute
 command_name          The command name (default: 'help')

Options:
 --xml                 To output help as XML
 --help (-h)           Display this help message.
 --quiet (-q)          Do not output any message.
 --verbose (-v)        Increase verbosity of messages.
 --version (-V)        Display this application version.
 --ansi                Force ANSI output.
 --no-ansi             Disable ANSI output.
 --no-interaction (-n) Do not ask any interactive question.

Help:
 The help command displays help for a given command:

   php symfttpd.phar help list

 You can also output the help as XML by using the --xml option:

   php symfttpd.phar help --xml list

Configuration

How?

First of all you need to configure symfttpd with a symfttpd.conf.php file.

benjamin:~/dev/project benjamin $ php symfttpd.phar init

The init command is available since the version 2.1 of Symfttpd.

Symfttpd looks for the configuration file:

By default symfttpd read the configuration from its own symfttpd.conf.php file.

What I have to configure?

The minimal information symfttpd needs is a project type and a project version.

<?php
// symfttpd.conf.php of a Symfony 2 project
$options['project_type']    = "symfony";
$options['project_version'] = "2";

This will tell Symfttpd to run a Lighttpd (using fastcgi) server in your Symfony 2 project.

You can check the reference for more options to configure.

spawn

If you don't want to configure a full-blown webserver, edit your host file, edit the configuration, have a web server running even when you don't need it, or deal with permissions, then this tool is for you.

Quick start

After configuring symfttpd you only have to run the following:

benjamin:~/dev/project benjamin $ php symfttpd.phar spawn -t

It will display something like that:

Symfttpd - version v2.0.0-dev
lighttpd started on 127.0.0.1, port 4042.

Available applications:
 http://127.0.0.1:4042/app.php
 http://127.0.0.1:4042/app_dev.php

Press Ctrl+C to stop serving.
error: 2012-05-26 20:19:25: (log.c.166) server started 

Configuration

You can alter the default configuration of the server, by using the symfttpd.conf.php mechanism. Check the reference for more options to configure.

Available options

genconf

If you don't want to copy/paste your server configs, handle regular expressions when you add files, or fight rewriting issues, then this tool is for you.

Quick start

Typical Lighttpd config:

$HTTP["host"] == "example.com" {
  include_shell "php /path/to/symfttpd.phar genconf -p /path/to/example.com/web"
}

or if you want a different default application:

$HTTP["host"] == "mobile.example.com" {
  include_shell "php /path/to/symfttpd.phar genconf -p /path/to/example.com/web -d mobile"
}

Available options

FAQ

How do I pronounce it?!

lighttpd being pronounced lighty, I recommend symfy.

Is Windows supported?

No, and it probably never will be.

Can I use genconf in production?

Yes. I'd say you should, since the command line options of genconf are thought for that particular use. genconf does not run symfony or any other external files, nor writes anything anywhere, so it is very little risk.

Can I use spawn in production?

No!

Can I start spawn in the background?

Yes, just add & after your command.

php /path/to/symfttpd.phar spawn &

To stop a running symfttpd (backgrounding or not), just run:

php path/to/symfttpd.phar spawn --kill

All versions of symfttpd with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/console Version >=2.1, <3.0
symfony/process Version >=2.1, <3.0
symfony/finder Version >=2.1, <3.0
symfony/filesystem Version >=2.1, <3.0
symfony/config Version >=2.1, <3.0
symfony/event-dispatcher Version >=2.1, <3.0
twig/twig Version >=1.10,<2.0-dev
pimple/pimple Version 1.0.*@dev
monolog/monolog Version >=1.3, <2.0
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 benjam1/symfttpd contains the following files

Loading the files please wait ....