Skip to content

Commit 0320dc1

Browse files
author
Wazabii
committed
Bundling
1 parent 631d020 commit 0320dc1

File tree

160 files changed

+14867
-1
lines changed

Some content is hidden

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

160 files changed

+14867
-1
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
vendor/
2+
._*
3+
.DS_Store
4+
.sass-cache
5+
.env
6+
.php-cs-fixer.cache
7+
.smbdelete*
8+
node_modules/.package-lock.json
9+
storage/logs/*.log
10+
composer.lock
11+
package-lock.json

.gitmodules

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[submodule "app/Libraries/Nest"]
2+
path = app/Libraries/Nest
3+
url = git@github.com:MaplePHP/Nest.git
4+
[submodule "app/Libraries/Http"]
5+
path = app/Libraries/Http
6+
url = git@github.com:MaplePHP/Http.git
7+
[submodule "app/Libraries/Container"]
8+
path = app/Libraries/Container
9+
url = git@github.com:MaplePHP/Container.git
10+
[submodule "app/Libraries/Handler"]
11+
path = app/Libraries/Handler
12+
url = git@github.com:MaplePHP/Handler.git
13+
[submodule "app/Libraries/Log"]
14+
path = app/Libraries/Log
15+
url = git@github.com:MaplePHP/Log.git
16+
[submodule "app/Libraries/Query"]
17+
path = app/Libraries/Query
18+
url = git@github.com:MaplePHP/Query.git
19+
[submodule "app/Libraries/Roles"]
20+
path = app/Libraries/Roles
21+
url = git@github.com:MaplePHP/Roles.git
22+
[submodule "app/Libraries/Form"]
23+
path = app/Libraries/Form
24+
url = git@github.com:MaplePHP/Form.git
25+
[submodule "app/Libraries/Validate"]
26+
path = app/Libraries/Validate
27+
url = git@github.com:MaplePHP/Validate.git
28+
[submodule "app/Libraries/DTO"]
29+
path = app/Libraries/DTO
30+
url = git@github.com:MaplePHP/DTO.git
31+
[submodule "app/Libraries/Output"]
32+
path = app/Libraries/Output
33+
url = git@github.com:MaplePHP/SwiftRender.git
34+
[submodule "app/Libraries/Cache"]
35+
path = app/Libraries/Cache
36+
url = git@github.com:MaplePHP/Cache.git

README.md

100644100755
Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,81 @@
1+
2+
13
# MaplePHP
2-
MaplePHP is a layered structure PHP framework with full PSR support
4+
**MaplePHP is a layered structure PHP framework** that has been meticulously crafted to provide developers with an intuitive, user-friendly experience that doesn't compromise on performance or scalability. By leveraging a modular architecture with **full PSR support**, the framework allows for easy customization and flexibility, enabling developers to pick and choose the specific components they need to build their applications. Overall, the PHP Fuse framework is an excellent choice for developers looking to build high-quality web applications quickly and efficiently.
5+
6+
## Installation
7+
Right now installation will only be available through **git** because of I have made every library as an **submodule**. This might change soon.
8+
```
9+
git clone --recurse-submodules git@github.com:MaplePHP/MaplePHP.git myAppDir
10+
```
11+
12+
## Guides
13+
The guide is not complete. There is much more to come.
14+
- [Cache](https://github.com/MaplePHP/Cache)
15+
- [Container](https://github.com/MaplePHP/Container)
16+
- [DTO](https://github.com/MaplePHP/DTO)
17+
- [Form](https://github.com/MaplePHP/Form)
18+
- [Handler](https://github.com/MaplePHP/Handler)
19+
- [Http](https://github.com/MaplePHP/Http)
20+
- [Log](https://github.com/MaplePHP/Log)
21+
- [Output](https://github.com/MaplePHP/SwiftRender)
22+
- [Query](https://github.com/MaplePHP/Query)
23+
- [Roles](https://github.com/MaplePHP/Roles)
24+
- [Validate](https://github.com/MaplePHP/Validate)
25+
- Clock (Guide not complete)
26+
- Cookies (Guide not complete)
27+
- Auth (Guide not complete)
28+
29+
### More functions
30+
- Pen-tested
31+
- Quality code tested
32+
- Dependency injector
33+
- Will have full PSR support
34+
- Service provider
35+
- Multiple languages
36+
- Built in protection againt XSS, CSRF, session injection, MySql injection
37+
- Emitter, CSP, Strict transport-security
38+
- Seamless communication between frontend and backend
39+
- Lightweight frontend code yet powerfull.
40+
41+
### Preview
42+
Guide will come
43+
```php
44+
45+
namespace Http\Controllers;
46+
47+
use MaplePHP\Http\Interfaces\ResponseInterface;
48+
use MaplePHP\Http\Interfaces\RequestInterface;
49+
use Services\ServiceProvider;
50+
use Http\Controllers\BaseController;
51+
52+
class YourController extends BaseController {
53+
54+
function __construct(ServiceProvider $provider) {
55+
}
56+
57+
function about(ResponseInterface $response, RequestInterface $request) {
58+
59+
// Meta (DOM)
60+
$this->head()->getElement("title")->setValue("About us");
61+
$this->head()->getElement("description")->attr("content", "Lorem ipum dolor");
62+
63+
// Template
64+
$this->view()->setPartial("breadcrumb", [
65+
"tagline" => getenv("APP_NAME"),
66+
"name" => "Welcome to MaplePHP",
67+
"content" => "Get ready to build you first application."
68+
]);
69+
70+
//$this->local("auth")->get("wrong-credentials", "Wrong credentials"); // Static translate
71+
//$this->lang()
72+
//$this->cookies()
73+
//$this->mail()
74+
//$this->responder()
75+
//...
76+
77+
return $response;
78+
}
79+
80+
}
81+
```

0 commit comments

Comments
 (0)