Skip to content

Commit

Permalink
Merge pull request #1 from PHPFastCGI/silex-adapt
Browse files Browse the repository at this point in the history
Changed from Speedex to SilexAdapter
  • Loading branch information
AndrewCarterUK committed Nov 2, 2015
2 parents 90e0b31 + b5a12c3 commit e613bbd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Speedex
# PHPFastCGI Silex Adapter

[![Build Status](https://travis-ci.org/PHPFastCGI/Speedex.svg?branch=master)](https://travis-ci.org/PHPFastCGI/Speedex)
[![Coverage Status](https://coveralls.io/repos/PHPFastCGI/Speedex/badge.svg?branch=master)](https://coveralls.io/r/PHPFastCGI/Speedex?branch=master)
Expand All @@ -9,18 +9,18 @@ Visit the [project website](http://phpfastcgi.github.io/).

## Introduction

Using this package, Silex applications can stay alive between HTTP requests whilst operating behind the protection of a FastCGI enabled web server.
Using this adapter, Silex applications can stay alive between HTTP requests whilst operating behind the protection of a FastCGI enabled web server.

## Current Status

This project is currently in early stages of development and not considered stable. Importantly, this library currently lacks support for uploaded files. Also a memory leak protection feature is scheduled for integration that allows the daemon to shutdown after handling 'N' requests.
This project is currently in early stages of development and not considered stable. Importantly, this library currently lacks support for uploaded files.

Contributions and suggestions are welcome.

## Installing

```sh
composer require "phpfastcgi/speedex:^0.4"
composer require "phpfastcgi/silex-adapter:^0.5"
```

## Usage
Expand All @@ -32,11 +32,11 @@ composer require "phpfastcgi/speedex:^0.4"
require_once dirname(__FILE__) . '/../vendor/autoload.php';

use PHPFastCGI\FastCGIDaemon\ApplicationFactory;
use PHPFastCGI\Speedex\ApplicationWrapper;
use Silex\Application as SilexApplication;
use PHPFastCGI\Adapter\Silex\ApplicationWrapper;
use Silex\Application;

// Create your Silex application
$app = new SilexApplication;
$app = new Application;
$app->get('/hello/{name}', function ($name) use ($app) {
return 'Hello ' . $app->escape($name);
});
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "phpfastcgi/speedex",
"description": "A bundle to integrate a FastCGI daemon with the Silex micro-framework",
"keywords": ["speedex", "silex", "fastcgi", "server", "fast cgi", "daemon"],
"name": "phpfastcgi/silex-adapter",
"description": "An adapter to integrate PHPFastCGI with the Silex micro-framework",
"keywords": ["silex", "fastcgi", "server", "fast cgi", "daemon"],
"license": "GPL v2",
"authors": [
{
Expand All @@ -19,12 +19,12 @@
},
"autoload": {
"psr-4": {
"PHPFastCGI\\Speedex\\": "src/"
"PHPFastCGI\\Adapter\\Silex\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PHPFastCGI\\Test\\Speedex\\": "test/"
"PHPFastCGI\\Test\\Adapter\\Silex\\": "test/"
}
}
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="Speedex Test Suite">
<testsuite name="PHPFastCGI Silex Adapter Test Suite">
<directory>test</directory>
</testsuite>
</testsuites>
Expand Down
2 changes: 1 addition & 1 deletion src/ApplicationWrapper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PHPFastCGI\Speedex;
namespace PHPFastCGI\Adapter\Silex;

use PHPFastCGI\FastCGIDaemon\Http\RequestInterface;
use PHPFastCGI\FastCGIDaemon\KernelInterface;
Expand Down
4 changes: 2 additions & 2 deletions test/ApplicationWrapperTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace PHPFastCGI\Speedex\Tests;
namespace PHPFastCGI\Adapter\Silex\Tests;

use PHPFastCGI\FastCGIDaemon\Http\Request;
use PHPFastCGI\Speedex\ApplicationWrapper;
use PHPFastCGI\Adapter\Silex\ApplicationWrapper;
use Silex\Application;

class ApplicationWrapperTest extends \PHPUnit_Framework_TestCase
Expand Down

0 comments on commit e613bbd

Please sign in to comment.