8000 First commit · javanile/php-input@4c8a146 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c8a146

Browse files
First commit
1 parent a4d03e6 commit 4c8a146

9 files changed

+3619
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.idea/
2+
.vscode/
13
/vendor/
24
node_modules/
35
npm-debug.log

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
4+
5+
6+
7+
test:
8+
./vendor/bin/pest

bootstrap.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the PHP Input package.
5+
*
6+
* (c) Francesco Bianco <bianco@javanile.org>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
use Javanile\PhpInput\PhpInput;
13+
14+
if (!function_exists('input')) {
15+
function input($inputName, $defaultValue = null)
16+
{
17+
return PhpInput::input($inputName, $defaultValue);
18+
}
19+
}
20+
21+
if (!function_exists('getallheaders')) {
22+
function getallheaders()
23+
{
24+
return PhpInput::getAllHeaders();
25+
}
26+
}

composer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "javanile/php-input",
3+
"type": "library",
4+
"description": "Implement no-code input function for PHP",
5+
"keywords": [
6+
"input",
7+
"webrequest",
8+
"nocode",
9+
"lowcode",
10+
"web3"
11+
],
12+
"homepage": "https://github.com/javanile/php-inpuy",
13+
"license": "MIT",
14+
"authors": [
15+
{
16+
"name": "Francesco Bianco",
17+
"homepage": "https://github.com/francescobianco"
18+
}
19+
],
20+
"require": {
21+
"php": ">=7.1"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"Javanile\\PhpInput\\": "src"
26+
},
27+
"files": [
28+
"bootstrap.php"
29+
]
30+
},
31+
"minimum-stability": "dev",
32+
"extra": {
33+
"thanks": {
34+
"name": "javanile/webrequest",
35+
"url": "https://github.com/javanile/webrequest"
36+
}
37+
},
38+
"require-dev": {
39+
"pestphp/pest": "1.x-dev"
40+
},
41+
"config": {
42+
"allow-plugins": {
43+
"pestphp/pest-plugin": true
44+
}
45+
}
46+
}

0 commit comments

Comments
 (0)
0