Skip to content

Commit 4af93df

Browse files
Merge pull request #1 from PHPFastCGI/slim-adapt
Renamed from Slimmer to SlimAdapter
2 parents 9b99b8e + 9fb1900 commit 4af93df

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Slimmer
1+
# PHPFastCGI Slim Adapter
22

33
[![Build Status](https://travis-ci.org/PHPFastCGI/Slimmer.svg?branch=master)](https://travis-ci.org/PHPFastCGI/Slimmer)
44
[![Coverage Status](https://coveralls.io/repos/PHPFastCGI/Slimmer/badge.svg?branch=master)](https://coveralls.io/r/PHPFastCGI/Slimmer?branch=master)
@@ -13,14 +13,14 @@ Using this package, Slim v3 applications can stay alive between HTTP requests wh
1313

1414
## Current Status
1515

16-
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.
16+
This project is currently in early stages of development and not considered stable. Importantly, this library currently lacks support for uploaded files.
1717

1818
Contributions and suggestions are welcome.
1919

2020
## Installing
2121

2222
```sh
23-
composer require "phpfastcgi/slimmer:^0.4"
23+
composer require "phpfastcgi/slim-adapter:^0.5"
2424
```
2525

2626
## Usage
@@ -32,11 +32,11 @@ composer require "phpfastcgi/slimmer:^0.4"
3232
require_once dirname(__FILE__) . '/../vendor/autoload.php';
3333

3434
use PHPFastCGI\FastCGIDaemon\ApplicationFactory;
35-
use PHPFastCGI\Slimmer\AppWrapper;
36-
use Slim\App as SlimApp;
35+
use PHPFastCGI\Adapter\Slim\AppWrapper;
36+
use Slim\App;
3737

3838
// Create your Slim app
39-
$app = new SlimApp();
39+
$app = new App();
4040
$app->get('/hello/{name}', function ($request, $response, $args) {
4141
$response->write('Hello, ' . $args['name']);
4242
return $response;

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "phpfastcgi/slimmer",
3-
"description": "A bundle to integrate a FastCGI daemon with the Slim v3 micro-framework",
4-
"keywords": ["slimmer", "slim", "fastcgi", "server", "fast cgi", "daemon"],
2+
"name": "phpfastcgi/slim-adapter",
3+
"description": "A PHPFastCGI adapter for the Slim v3 micro-framework",
4+
"keywords": ["slim", "fastcgi", "server", "fast cgi", "daemon"],
55
"license": "GPL v2",
66
"authors": [
77
{
@@ -19,12 +19,12 @@
1919
},
2020
"autoload": {
2121
"psr-4": {
22-
"PHPFastCGI\\Slimmer\\": "src/"
22+
"PHPFastCGI\\Adapter\\Slim\\": "src/"
2323
}
2424
},
2525
"autoload-dev": {
2626
"psr-4": {
27-
"PHPFastCGI\\Test\\Slimmer\\": "test/"
27+
"PHPFastCGI\\Test\\Adapter\\Slim\\": "test/"
2828
}
2929
}
3030
}

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit bootstrap="vendor/autoload.php" colors="true">
33
<testsuites>
4-
<testsuite name="Slimmer Test Suite">
4+
<testsuite name="PHPFastCGI Slim Adapter Test Suite">
55
<directory>test</directory>
66
</testsuite>
77
</testsuites>

src/AppWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHPFastCGI\Slimmer;
3+
namespace PHPFastCGI\Adapter\Slim;
44

55
use PHPFastCGI\FastCGIDaemon\Http\RequestInterface;
66
use PHPFastCGI\FastCGIDaemon\KernelInterface;

test/AppWrapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace PHPFastCGI\Test\Slimmer;
44

5+
use PHPFastCGI\Adapter\Slim\AppWrapper;
56
use PHPFastCGI\FastCGIDaemon\Http\Request;
6-
use PHPFastCGI\Slimmer\AppWrapper;
77
use Slim\App;
88
use Slim\Exception\Exception as SlimException;
99
use Zend\Diactoros\Response\HtmlResponse;

0 commit comments

Comments
 (0)