Compare commits

..

5 Commits

Author SHA1 Message Date
jay 71b3802a4e delete README.md 2026-08-14 17:46:46 -04:00
jay 332643448e add responses 2026-08-14 17:46:27 -04:00
jay c86580cf3e require laminas/laminas-diactoros 2026-08-14 17:46:18 -04:00
jay 63e794141f composer init 2026-08-14 17:40:10 -04:00
jay 0d5290e254 add .gitignore 2026-08-14 17:39:20 -04:00
7 changed files with 57 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
composer.lock
/nbproject/
/vendor/
-2
View File
@@ -1,2 +0,0 @@
# Response
+22
View File
@@ -0,0 +1,22 @@
{
"name": "potter/response",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"Potter\\Response\\": "src/Potter/Response/"
}
},
"authors": [
{
"name": "Jay Potter",
"email": "j@ypotter.ca"
}
],
"minimum-stability": "stable",
"require": {
"laminas/laminas-diactoros": "^3.8",
"psr/http-factory": "^1.1.0",
"psr/http-message": "^2.0.0"
}
}
+8
View File
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace Potter\Response;
final class Html extends \Laminas\Diactoros\Response\HtmlResponse
{ }
+8
View File
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace Potter\Response;
final class Json extends \Laminas\Diactoros\Response\JsonResponse
{ }
+8
View File
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace Potter\Response;
final class Redirect extends \Laminas\Diactoros\Response\RedirectResponse
{ }
+8
View File
@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace Potter\Response;
final class Text extends \Laminas\Diactoros\Response\TextResponse
{ }