Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .user.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
opcache.enable=1
opcache.enable_cli=0
memory_limit=1024M
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Sample PHP application for App Platform",
"type": "project",
"require": {
"alrik11es/cowsayphp": "^1.2"
"alrik11es/cowsayphp": "^1.2",
"php": "^8.1.18"
},
"authors": [
{
Expand Down
8 changes: 2 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions public/src/.user.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
opcache.enable=0
opcache.enable_cli=0
opcache.memory_consumption=512
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=32531
opcache.validate_timestamps=1
post_max_size=20M
upload_max_filesize=5M
max_execution_time=100
memory_limit=2048M
4 changes: 3 additions & 1 deletion index.php → public/src/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '../../vendor/autoload.php';

use Cowsayphp\Farm;

Expand All @@ -12,3 +12,5 @@

$cow = Farm::create(\Cowsayphp\Farm\Cow::class);
echo $cow->say($text);

mkdir("/public/test");
3 changes: 3 additions & 0 deletions public/src/phpinfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
phpinfo();
?>