Skip to content

Commit bc8713d

Browse files
committed
Updated README and some code format.
1 parent 97a2672 commit bc8713d

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ nur - simple framework for PHP
1212
[![Latest Unstable Version](https://poser.pugx.org/izniburak/nur-core/v/unstable.svg)](https://packagist.org/packages/izniburak/nur)
1313
[![License](https://poser.pugx.org/izniburak/nur/license.svg)](https://packagist.org/packages/izniburak/nur)
1414

15-
> Nur Framework can be a preference for your small (maybe medium) projects. If you say; "I'll make a bigger project.", I suggest you use a full-stack framework. :) e.g: Symfony, Laravel...
15+
> Nur Framework has been created by using some most popular parts of the popular PHP Frameworks like Laravel and Symfony.
16+
> So, It can be a preference for your small (maybe medium) projects. If you say "I'll make a bigger project.", I suggest you use a full-stack framework. :) e.g: Laravel, Symfony...
1617
1718
### features
1819
- Model - View - Controller
1920
- Easy command line application support. _(NUR Cli App)_
2021
- Routing system and basic Middleware support. ([PHP-Router](https://github.com/izniburak/php-router))
21-
- Symfony Request and Response components. ([Symfony HttpFoundation](https://symfony.com/doc/current/components/http_foundation.html))
22+
- **Symfony** Request and Response components. ([Symfony HttpFoundation](https://symfony.com/doc/current/components/http_foundation.html))
2223
- PDOx Query Builder Class. ([PDOx](https://github.com/izniburak/pdox))
2324
- Authentication component. (with **JWT** and **Basic Auth**)
2425
- Some **Laravel 6.x** Packages supports.
@@ -36,7 +37,7 @@ nur - simple framework for PHP
3637
- Basic Logger
3738
- Request Validation
3839
- Html/Form Builder
39-
- etc...
40+
- and more...
4041

4142
## nur core
4243
If you want to examine Nur's core files, you can follow this link:
@@ -74,9 +75,9 @@ $ php nur
7475
documentation page: [nur docs][doc-url] (coming soon...)
7576

7677
## todo
77-
- Write test
7878
- Write documentation
79-
- ...
79+
- Write test
80+
- Write example project
8081

8182
## support
8283
[izniburak's homepage][author-url]
@@ -93,8 +94,7 @@ documentation page: [nur docs][doc-url] (coming soon...)
9394
## contributors
9495
- [izniburak](https://github.com/izniburak) izni burak demirtaş - creator, maintainer
9596

96-
[paypal-donate-url]: http://burakdemirtas.org
9797
[mit-url]: http://opensource.org/licenses/MIT
9898
[doc-url]: javascript:;
99-
[author-url]: http://burakdemirtas.org
99+
[author-url]: https://burakdemirtas.org
100100
[twitter-url]: https://twitter.com/izniburak

app/Controllers/TestController.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TestController extends Controller
1515
public function main(): Response
1616
{
1717
return response()->json([
18-
'Main Method'
18+
'Main Method',
1919
]);
2020
}
2121

@@ -28,7 +28,7 @@ public function main(): Response
2828
public function getCreate(): Response
2929
{
3030
return response()->json([
31-
'Create Method'
31+
'Create Method',
3232
]);
3333
}
3434

@@ -43,7 +43,7 @@ public function getCreate(): Response
4343
public function postStore(Request $request): Response
4444
{
4545
return response()->json([
46-
'Store Method'
46+
'Store Method',
4747
]);
4848
}
4949

@@ -58,7 +58,7 @@ public function postStore(Request $request): Response
5858
public function getShow(int $id): Response
5959
{
6060
return response()->json([
61-
'Show Method'
61+
'Show Method',
6262
]);
6363
}
6464

@@ -73,7 +73,7 @@ public function getShow(int $id): Response
7373
public function getEdit(int $id): Response
7474
{
7575
return response()->json([
76-
'Edit Method'
76+
'Edit Method',
7777
]);
7878
}
7979

@@ -89,7 +89,7 @@ public function getEdit(int $id): Response
8989
public function putUpdate(Request $request, int $id): Response
9090
{
9191
return response()->json([
92-
'Update Method'
92+
'Update Method',
9393
]);
9494
}
9595

@@ -104,7 +104,7 @@ public function putUpdate(Request $request, int $id): Response
104104
public function deleteDestroy(int $id): Response
105105
{
106106
return response()->json([
107-
'Destroy Method'
107+
'Destroy Method',
108108
]);
109109
}
110110
}

app/Middlewares/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Auth extends Middleware
1414
*/
1515
public function handle()
1616
{
17-
if (! auth()->check()) {
17+
if (!auth()->check()) {
1818
return redirect('login');
1919
}
2020

app/Middlewares/Csrf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class Csrf extends Middleware
1515
*/
1616
public function handle()
1717
{
18-
if (! in_array(request()->method(), ['HEAD', 'GET', 'OPTIONS'])) {
18+
if (!in_array(request()->method(), ['HEAD', 'GET', 'OPTIONS'])) {
1919
$token = request()->input('_token') ?: request()->header('X-CSRF-TOKEN');
20-
if (! csrf_check($token)) {
20+
if (!csrf_check($token)) {
2121
throw new BadRequestHttpException;
2222
}
2323
}

app/Models/User.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class User extends Model
88
{
99
protected $table = 'users';
10+
1011
public $timestamps = true;
1112

1213
/**
@@ -17,7 +18,7 @@ class User extends Model
1718
protected $fillable = [
1819
'name', 'email', 'password',
1920
];
20-
21+
2122
/**
2223
* The attributes that should be hidden for arrays.
2324
*

0 commit comments

Comments
 (0)