Skip to content

Commit 6235a94

Browse files
committed
13 Dec 2023
1) Bootstrap update. 2) JWT library update. 3) Some cosmetic updates.
1 parent 1dbdd82 commit 6235a94

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+188
-130
lines changed

README.md

+33-32
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
11
## CORE BOXX
22
Core Boxx is a PHP framework built with the concept of simplicity and modularity. Install and load only what you need, not bloated with unused features.
3+
<br><br>
34

4-
TLDR - "Jumpstart your project with a collection of predefined plug-and-play modules".
5+
## :ballot_box_with_check: REQUIREMENTS
6+
1) LAMP/WAMP/MAMP/XAMPP
7+
2) Apache Mod Rewrite
8+
3) PHP MYSQL PDO Extension
9+
4) At least PHP 8.0
10+
<br><br>
11+
12+
## :floppy_disk: INSTALLATION & NOTES
13+
- Copy the contents of `core/` into your HTTP folder.
14+
- Access `http://your-site.com/` in the browser and walk through the installer.
15+
16+
## :zap: OPTIONAL MODULES
17+
- The rest of the folders are optional modules.
18+
- To install the optional modules, check out their respective `README.md` files.
19+
<br><br>
20+
21+
## :star: SUPPORT
22+
Like this project? Just give it a star. That will indirectly help grow my blog a little bit. :wink:
23+
<br><br>
24+
25+
## :camera: SCREENSHOTS
26+
<p float="left">
27+
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-1.png">
28+
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-2.png">
29+
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-3.png">
30+
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-4.png">
31+
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-5.png">
32+
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-6.png">
33+
</p>
534
<br><br>
635

736
## :white_check_mark: "OUT OF THE BOX" FEATURES
@@ -12,7 +41,7 @@ TLDR - "Jumpstart your project with a collection of predefined plug-and-play mod
1241
5) Bootstrap HTML template.
1342
<br><br>
1443

15-
## :electric_plug: PLENTY OF MODULES
44+
## :electric_plug: MODULES
1645
* `admin` Admin panel.
1746
* `ai chatbot` Run a local AI Chatbot (Python).
1847
* `autocomplete` Autocomplete/suggestion.
@@ -30,40 +59,12 @@ TLDR - "Jumpstart your project with a collection of predefined plug-and-play mod
3059
* `web push` Send push notifications.
3160
<br><br>
3261

33-
## :camera: SCREENSHOTS
34-
<p float="left">
35-
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-1.png">
36-
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-2.png">
37-
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-3.png">
38-
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-4.png">
39-
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-5.png">
40-
<img width="250" src="https://github.com/code-boxx/Core-Boxx-PHP-Framework/blob/main/core/assets/core-boxx-6.png">
41-
</p>
42-
<br><br>
43-
44-
## :ballot_box_with_check: REQUIREMENTS
45-
1) LAMP/WAMP/MAMP/XAMPP
46-
2) Apache Mod Rewrite
47-
3) PHP MYSQL PDO Extension
48-
4) At least PHP 8.0
49-
<br><br>
50-
51-
## :floppy_disk: INSTALLATION & NOTES
52-
1) Just copy `core/` into your project folder. Access `http://your-site.com/` in the browser and walk through the installer.
53-
2) The rest are optional modules... Too lazy and messy to create separate repos for each.
54-
3) Some modules may require "extra installation steps", do check out the respective documentation - https://code-boxx.com/core-boxx-php-framework/#sec-ref
55-
<br><br>
56-
57-
## :bulb: DOCUMENTATION & FRAMEWORKS
62+
## :bulb: DOCUMENTATION & CREDITS
5863
1) Visit [Core Boxx](https://code-boxx.com/core-boxx-php-framework/) for more for the full documentation!
5964
2) Built on [Bootstrap](https://getbootstrap.com/) and [IcoMoon](https://icomoon.io/).
6065
3) Using [PHP-JWT library](https://github.com/firebase/php-jwt)
6166
<br><br>
6267

63-
## :star: SUPPORT
64-
Like this project? Just give it a star. That will indirectly help grow my blog a little bit. :wink:
65-
<br><br>
66-
6768
## :newspaper: LICENSE
6869
Copyright by Code Boxx
6970

@@ -83,4 +84,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8384
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8485
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8586
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
86-
SOFTWARE.
87+
SOFTWARE.

admin/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ https://code-boxx.com/core-boxx-admin-panel/
66
* [Users Module](https://github.com/code-boxx/Core-Boxx-PHP-Framework/tree/main/users)
77

88
## INSTALL
9-
* Copy/unzip this module into your existing Core Boxx project folder.
9+
* Copy this module into your existing Core Boxx project folder.
1010
* Access `http://your-site.com/install/admin`, this will automatically:
1111
- Create a new `HOST_ADMIN` definition in `lib/CORE-config.php`.
1212
- Add a new `$wild = [ "admin/" => "ADM-check.php" ]` line to `lib/HOOK-Routes.php`.
@@ -33,4 +33,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3333
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3434
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3535
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36-
SOFTWARE.
36+
SOFTWARE.

ai chatbot/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ https://code-boxx.com/core-boxx-ai-chatbot/
99
* [Nvidia CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit) - If you have an Nvidia graphics card.
1010

1111
## RECOMMENDED
12-
* An Nvidia graphics card with at least 8GB VRAM is highly recommended.
12+
* An Nvidia graphics card with at least 8GB VRAM.
1313
* You can TRY to run on CPU-only, but it is painfully slow.
1414

1515
## INSTALLATION
16-
* Copy/unzip this module into your existing Core Boxx project folder.
16+
* Copy this module into your existing Core Boxx project folder.
1717
* Put documents you want the AI to "learn" into `chatbot/docs`, accepted file types - `csv pdf txt epub html md odt doc docx ppt pptx`.
1818
* Start install - *BE WARNED, SEVERAL GIGABYTES WORTH OF DOWNLOAD!*
1919
* GPU - Run `0-setup.bat` (Windows) `0-setup.sh` (Linux).
2020
* CPU - Run `0-setup.bat CPU` (Windows) `0-setup.sh CPU` (Linux).
2121
* You will need to [choose and download an AI model](https://code-boxx.com/core-boxx-ai-chatbot/#sec-choose).
2222
* Run `2-bot.bat 2-bot.sh`, access `http://your-site.com/ai/` for the demo.
2323

24-
## REBUILD THE DATEBASE
24+
## TO REBUILD THE DATEBASE
2525
* Simply add/remove documents from `chatbot/docs`.
2626
* Run `1-create.bat / 1-create.sh`.
2727

ai chatbot/assets/ai-bot.webp

-86 Bytes
Binary file not shown.

ai chatbot/assets/ai-human.webp

50 Bytes
Binary file not shown.

ai chatbot/assets/ai-system.webp

474 Bytes
Binary file not shown.

ai chatbot/chatbot/d_bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# (A) LOAD SETTINGS & MODULES
22
import a_settings as set
33
import c_oto_rodo as oto
4-
from langchain import PromptTemplate
4+
from langchain.prompts import PromptTemplate
55
from langchain.vectorstores import Chroma
66
from langchain.embeddings import HuggingFaceInstructEmbeddings
77
from langchain.chains import RetrievalQA

autocomplete/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ https://code-boxx.com/core-boxx-autocomplete-module/
55
* [Core Boxx](https://github.com/code-boxx/Core-Boxx-PHP-Framework/tree/main/core)
66

77
## INSTALL
8-
* Copy/unzip this module into your existing Core Boxx project folder.
8+
* Copy this module into your existing Core Boxx project folder.
99
* Access `http://your-site.com/install/autocomplete`, this will automatically:
1010
- Add a new `SUGGEST_LIMIT` setting in the database.
1111
- Delete `PAGE-install-autocomplete.php` itself.
@@ -33,4 +33,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3333
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3434
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3535
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36-
SOFTWARE.
36+
SOFTWARE.

calendar/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ https://code-boxx.com/core-boxx-calendar-module/
55
* [Core Boxx](https://github.com/code-boxx/Core-Boxx-PHP-Framework/tree/main/core)
66

77
## INSTALL
8-
* Copy/unzip this module into your existing Core Boxx project folder.
8+
* Copy this module into your existing Core Boxx project folder.
99
* Access `http://your-site.com/install/calendar`, this will automatically:
1010
- Import `lib/SQL-Calendar.sql` into your database.
1111
- Delete `PAGE-install-calendar.php` itself.
@@ -31,4 +31,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3131
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3232
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3333
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34-
SOFTWARE.
34+
SOFTWARE.

comments/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ https://code-boxx.com/core-boxx-comments-module/
66
* [Users Module](https://github.com/code-boxx/Core-Boxx-PHP-Framework/tree/main/users)
77

88
## INSTALL
9-
* Copy/unzip this module into your existing Core Boxx project folder.
9+
* Copy this module into your existing Core Boxx project folder.
1010
* Acces `http://your-site.com/install/comments`, this will automatically:
1111
- Import `lib/SQL-Comments.sql` into your database.
1212
- Delete `PAGE-install-comments.php` itself.
@@ -36,4 +36,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3636
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3737
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3838
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39-
SOFTWARE.
39+
SOFTWARE.

core/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://code-boxx.com/core-boxx-php-framework/
99
* At least PHP 8.0
1010

1111
## INSTALL
12-
Copy/unzip into your project folder, and access `http://your-site.com`.
12+
Copy into your project folder, and access `http://your-site.com`.
1313

1414
## LICENSE
1515
Copyright by Code Boxx

core/assets/bootstrap.bundle.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/assets/bootstrap.bundle.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/assets/bootstrap.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/assets/bootstrap.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/assets/core-boxx-1.png

-7.52 KB
Loading

core/assets/core-boxx-2.png

-1.38 KB
Loading

core/assets/core-boxx-3.png

-2.6 KB
Loading

core/assets/core-boxx-4.png

-9.83 KB
Loading

core/assets/head-core-boxx.webp

-4.38 KB
Binary file not shown.

core/lib/JWT/autoload.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
require_once __DIR__ . '/composer/autoload_real.php';
2424

25-
return ComposerAutoloaderInit3b0a7942a58597309a1a94ad80ddc804::getLoader();
25+
return ComposerAutoloaderInit4227a9262042b7b77c23e4da01de8cd1::getLoader();

core/lib/JWT/composer/autoload_real.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInit3b0a7942a58597309a1a94ad80ddc804
5+
class ComposerAutoloaderInit4227a9262042b7b77c23e4da01de8cd1
66
{
77
private static $loader;
88

@@ -24,12 +24,12 @@ public static function getLoader()
2424

2525
require __DIR__ . '/platform_check.php';
2626

27-
spl_autoload_register(array('ComposerAutoloaderInit3b0a7942a58597309a1a94ad80ddc804', 'loadClassLoader'), true, true);
27+
spl_autoload_register(array('ComposerAutoloaderInit4227a9262042b7b77c23e4da01de8cd1', 'loadClassLoader'), true, true);
2828
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29-
spl_autoload_unregister(array('ComposerAutoloaderInit3b0a7942a58597309a1a94ad80ddc804', 'loadClassLoader'));
29+
spl_autoload_unregister(array('ComposerAutoloaderInit4227a9262042b7b77c23e4da01de8cd1', 'loadClassLoader'));
3030

3131
require __DIR__ . '/autoload_static.php';
32-
call_user_func(\Composer\Autoload\ComposerStaticInit3b0a7942a58597309a1a94ad80ddc804::getInitializer($loader));
32+
call_user_func(\Composer\Autoload\ComposerStaticInit4227a9262042b7b77c23e4da01de8cd1::getInitializer($loader));
3333

3434
$loader->register(true);
3535

core/lib/JWT/composer/autoload_static.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInit3b0a7942a58597309a1a94ad80ddc804
7+
class ComposerStaticInit4227a9262042b7b77c23e4da01de8cd1
88
{
99
public static $prefixLengthsPsr4 = array (
1010
'F' =>
@@ -27,9 +27,9 @@ class ComposerStaticInit3b0a7942a58597309a1a94ad80ddc804
2727
public static function getInitializer(ClassLoader $loader)
2828
{
2929
return \Closure::bind(function () use ($loader) {
30-
$loader->prefixLengthsPsr4 = ComposerStaticInit3b0a7942a58597309a1a94ad80ddc804::$prefixLengthsPsr4;
31-
$loader->prefixDirsPsr4 = ComposerStaticInit3b0a7942a58597309a1a94ad80ddc804::$prefixDirsPsr4;
32-
$loader->classMap = ComposerStaticInit3b0a7942a58597309a1a94ad80ddc804::$classMap;
30+
$loader->prefixLengthsPsr4 = ComposerStaticInit4227a9262042b7b77c23e4da01de8cd1::$prefixLengthsPsr4;
31+
$loader->prefixDirsPsr4 = ComposerStaticInit4227a9262042b7b77c23e4da01de8cd1::$prefixDirsPsr4;
32+
$loader->classMap = ComposerStaticInit4227a9262042b7b77c23e4da01de8cd1::$classMap;
3333

3434
}, null, ClassLoader::class);
3535
}

core/lib/JWT/composer/installed.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"packages": [
33
{
44
"name": "firebase/php-jwt",
5-
"version": "v6.8.1",
6-
"version_normalized": "6.8.1.0",
5+
"version": "v6.10.0",
6+
"version_normalized": "6.10.0.0",
77
"source": {
88
"type": "git",
99
"url": "https://github.com/firebase/php-jwt.git",
10-
"reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26"
10+
"reference": "a49db6f0a5033aef5143295342f1c95521b075ff"
1111
},
1212
"dist": {
1313
"type": "zip",
14-
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/5dbc8959427416b8ee09a100d7a8588c00fb2e26",
15-
"reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26",
14+
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff",
15+
"reference": "a49db6f0a5033aef5143295342f1c95521b075ff",
1616
"shasum": ""
1717
},
1818
"require": {
@@ -30,7 +30,7 @@
3030
"ext-sodium": "Support EdDSA (Ed25519) signatures",
3131
"paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
3232
},
33-
"time": "2023-07-14T18:33:00+00:00",
33+
"time": "2023-12-01T16:26:39+00:00",
3434
"type": "library",
3535
"installation-source": "dist",
3636
"autoload": {
@@ -62,7 +62,7 @@
6262
],
6363
"support": {
6464
"issues": "https://github.com/firebase/php-jwt/issues",
65-
"source": "https://github.com/firebase/php-jwt/tree/v6.8.1"
65+
"source": "https://github.com/firebase/php-jwt/tree/v6.10.0"
6666
},
6767
"install-path": "../firebase/php-jwt"
6868
}

core/lib/JWT/composer/installed.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
'dev_requirement' => false,
2121
),
2222
'firebase/php-jwt' => array(
23-
'pretty_version' => 'v6.8.1',
24-
'version' => '6.8.1.0',
25-
'reference' => '5dbc8959427416b8ee09a100d7a8588c00fb2e26',
23+
'pretty_version' => 'v6.10.0',
24+
'version' => '6.10.0.0',
25+
'reference' => 'a49db6f0a5033aef5143295342f1c95521b075ff',
2626
'type' => 'library',
2727
'install_path' => __DIR__ . '/../firebase/php-jwt',
2828
'aliases' => array(),

core/lib/JWT/firebase/php-jwt/CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [6.10.0](https://github.com/firebase/php-jwt/compare/v6.9.0...v6.10.0) (2023-11-28)
4+
5+
6+
### Features
7+
8+
* allow typ header override ([#546](https://github.com/firebase/php-jwt/issues/546)) ([79cb30b](https://github.com/firebase/php-jwt/commit/79cb30b729a22931b2fbd6b53f20629a83031ba9))
9+
10+
## [6.9.0](https://github.com/firebase/php-jwt/compare/v6.8.1...v6.9.0) (2023-10-04)
11+
12+
13+
### Features
14+
15+
* add payload to jwt exception ([#521](https://github.com/firebase/php-jwt/issues/521)) ([175edf9](https://github.com/firebase/php-jwt/commit/175edf958bb61922ec135b2333acf5622f2238a2))
16+
317
## [6.8.1](https://github.com/firebase/php-jwt/compare/v6.8.0...v6.8.1) (2023-07-14)
418

519

core/lib/JWT/firebase/php-jwt/src/BeforeValidException.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
namespace Firebase\JWT;
44

5-
class BeforeValidException extends \UnexpectedValueException
5+
class BeforeValidException extends \UnexpectedValueException implements JWTExceptionWithPayloadInterface
66
{
7+
private object $payload;
8+
9+
public function setPayload(object $payload): void
10+
{
11+
$this->payload = $payload;
12+
}
13+
14+
public function getPayload(): object
15+
{
16+
return $this->payload;
17+
}
718
}

core/lib/JWT/firebase/php-jwt/src/ExpiredException.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
namespace Firebase\JWT;
44

5-
class ExpiredException extends \UnexpectedValueException
5+
class ExpiredException extends \UnexpectedValueException implements JWTExceptionWithPayloadInterface
66
{
7+
private object $payload;
8+
9+
public function setPayload(object $payload): void
10+
{
11+
$this->payload = $payload;
12+
}
13+
14+
public function getPayload(): object
15+
{
16+
return $this->payload;
17+
}
718
}

0 commit comments

Comments
 (0)