Skip to content

Commit 0dd9cc4

Browse files
update
1 parent d1927c1 commit 0dd9cc4

File tree

6 files changed

+134
-5
lines changed

6 files changed

+134
-5
lines changed

.env

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
APP_NAME="ORM Database"
2+
APP_ENV=local
3+
APP_KEY=base64:3UeE2Q1scHP8tc7cI0BL3zQnX2PXdQwV+QuvI7DI84w=
4+
APP_DEBUG=true
5+
SITE_EMAIL=
6+
7+
DB_CONNECTION=mysql
8+
DB_HOST="127.0.0.1"
9+
DB_PORT=3306
10+
DB_USERNAME="root"
11+
DB_PASSWORD=
12+
DB_DATABASE=
13+
14+
DB_CHARSET=utf8mb4
15+
DB_COLLATION=utf8mb4_general_ci
16+
17+
MAIL_MAILER=smtp
18+
MAIL_HOST=
19+
MAIL_PORT=465
20+
MAIL_USERNAME=
21+
MAIL_PASSWORD=
22+
MAIL_ENCRYPTION=tls
23+
MAIL_FROM_ADDRESS="${MAIL_USERNAME}"
24+
MAIL_FROM_NAME="${APP_NAME}"
25+
26+
AWS_ACCESS_KEY_ID=
27+
AWS_SECRET_ACCESS_KEY=
28+
AWS_DEFAULT_REGION=us-east-1
29+
AWS_BUCKET=
30+
AWS_URL=
31+
AWS_USE_PATH_STYLE_ENDPOINT=false
32+
33+
CLOUDINARY_SECRET_KEY=
34+
CLOUDINARY_KEY=
35+
CLOUDINARY_NAME=
36+
CLOUDINARY_URL=
37+
CLOUDINARY_SECURE=false
38+
39+
PUSHER_APP_ID=
40+
PUSHER_APP_KEY=
41+
PUSHER_APP_SECRET=
42+
PUSHER_HOST=
43+
PUSHER_PORT=443
44+
PUSHER_SCHEME=https
45+
PUSHER_APP_CLUSTER=mt1

.env.example

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
APP_NAME="ORM Database"
2+
APP_ENV=local
3+
APP_KEY=base64:zjCPDySIWBWge9jaQ6DaMXjqlxPiOOqDFDGQELjqm50=
4+
APP_DEBUG=true
5+
SITE_EMAIL=
6+
7+
DB_CONNECTION=mysql
8+
DB_HOST="127.0.0.1"
9+
DB_PORT=3306
10+
DB_USERNAME="root"
11+
DB_PASSWORD=
12+
DB_DATABASE=
13+
14+
DB_CHARSET=utf8mb4
15+
DB_COLLATION=utf8mb4_general_ci
16+
17+
MAIL_MAILER=smtp
18+
MAIL_HOST=
19+
MAIL_PORT=465
20+
MAIL_USERNAME=
21+
MAIL_PASSWORD=
22+
MAIL_ENCRYPTION=tls
23+
MAIL_FROM_ADDRESS="${MAIL_USERNAME}"
24+
MAIL_FROM_NAME="${APP_NAME}"
25+
26+
AWS_ACCESS_KEY_ID=
27+
AWS_SECRET_ACCESS_KEY=
28+
AWS_DEFAULT_REGION=us-east-1
29+
AWS_BUCKET=
30+
AWS_URL=
31+
AWS_USE_PATH_STYLE_ENDPOINT=false
32+
33+
CLOUDINARY_SECRET_KEY=
34+
CLOUDINARY_KEY=
35+
CLOUDINARY_NAME=
36+
CLOUDINARY_URL=
37+
CLOUDINARY_SECURE=false
38+
39+
PUSHER_APP_ID=
40+
PUSHER_APP_KEY=
41+
PUSHER_APP_SECRET=
42+
PUSHER_HOST=
43+
PUSHER_PORT=443
44+
PUSHER_SCHEME=https
45+
PUSHER_APP_CLUSTER=mt1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/.idea
33
/.vscode
44
/.github
5+
./tame
56
composer.lock

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=8.0",
20-
"tamedevelopers/support": "*"
20+
"tamedevelopers/support": "^5.0"
2121
},
2222
"autoload": {
2323
"files": [
@@ -34,5 +34,10 @@
3434
}
3535
},
3636
"minimum-stability": "stable",
37-
"prefer-stable": true
37+
"prefer-stable": true,
38+
"config": {
39+
"allow-plugins": {
40+
"tamedevelopers/support": true
41+
}
42+
}
3843
}

src/helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function form($attribute = null)
2121
}
2222
}
2323

24-
if (! AppIsNotCorePHP() && ! function_exists('old')) {
24+
if (! Tame_isAppFramework() && ! function_exists('old')) {
2525

2626
/**
2727
* Return previously entered value
@@ -83,7 +83,7 @@ function config_form(?bool $error_type = false, ?bool $csrf_token = true, $reque
8383
}
8484
}
8585

86-
if (! AppIsNotCorePHP() && ! function_exists('csrf_token')) {
86+
if (! Tame_isAppFramework() && ! function_exists('csrf_token')) {
8787

8888
/**
8989
* Get Csrf Token
@@ -96,7 +96,7 @@ function csrf_token()
9696
}
9797
}
9898

99-
if (! AppIsNotCorePHP() && ! function_exists('csrf')) {
99+
if (! Tame_isAppFramework() && ! function_exists('csrf')) {
100100

101101
/**
102102
* Generate Input for Csrf Token

tame

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
// Unix timestamp with microseconds
5+
define('TAME_START', microtime(true));
6+
7+
/*
8+
|--------------------------------------------------------------------------
9+
| Ensure <composer autoload> is registered
10+
|--------------------------------------------------------------------------
11+
|
12+
| This file makes sure that composer's autoloader is loaded before any otherthing
13+
| in this application. It also ensures that all of our dependencies are installed
14+
| and ready to use by the developer.
15+
|
16+
*/
17+
18+
include_once __DIR__ . "/vendor/autoload.php";
19+
20+
/*
21+
|--------------------------------------------------------------------------
22+
| Run The Application CLI <dispatcher>
23+
|--------------------------------------------------------------------------
24+
|
25+
| This file is where your <CLI commands> will be dispatched from
26+
| using the command line, the response sent back to a terminal
27+
| or another output device for the developers.
28+
|
29+
*/
30+
31+
$artisan = new Tamedevelopers\Support\Capsule\Artisan();
32+
33+
exit($artisan->run($argv));

0 commit comments

Comments
 (0)