Skip to content

Commit e28b72b

Browse files
committed
readme updated
1 parent f0b0a33 commit e28b72b

Some content is hidden

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

48 files changed

+664
-35
lines changed

Diff for: README.md

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# InitPHP Framework3
2+
3+
InitPHP Framework, is the most minimalist web framework manager using MVC architecture.
4+
5+
[![Latest Stable Version](http://poser.pugx.org/initphp/framework3/v)](https://packagist.org/packages/initphp/framework3) [![Total Downloads](http://poser.pugx.org/initphp/framework3/downloads)](https://packagist.org/packages/initphp/framework3) [![Latest Unstable Version](http://poser.pugx.org/initphp/framework3/v/unstable)](https://packagist.org/packages/initphp/framework3) [![License](http://poser.pugx.org/initphp/framework3/license)](https://packagist.org/packages/initphp/framework3) [![PHP Version Require](http://poser.pugx.org/initphp/framework3/require/php)](https://packagist.org/packages/initphp/framework3)
6+
7+
This framework offers only the most essential infrastructure tools and structure. Although it is minimalist, the most basic libraries it offers have the ability to compete with large frameworks.
8+
9+
### What does it offer?
10+
11+
It offers basic libraries that every project needs, such as Configurations, HTTP Routing, Database Abstraction and ORM, Multi-Language Support, Triggerable Events, User Inputs, Logger, Validation.
12+
13+
If you need more; You can simply integrate any Init PHP library or a different library into your project.
14+
15+
## Installation
16+
17+
```
18+
composer create-project initphp/framework3 MyProject
19+
php init key:generate
20+
```
21+
22+
## Usage
23+
24+
It has a file and directory structure similar to the MVC frameworks that developers are used to. The classes and libraries of your application are in the `/application/` directory.
25+
26+
**_Note :_** If your project runs in a subdirectory, specify it in the `BASE_PATH` configuration in the `/.env` file.
27+
28+
You can find Route and other definitions in files and classes in the `/routes/` directory.
29+
30+
To see the available console commands;
31+
32+
```
33+
php init list
34+
```
35+
36+
## To-Do
37+
38+
-[ ] Detailed documentation or Wiki will be prepared.
39+
40+
## Getting Help
41+
42+
If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.
43+
44+
## Contributing
45+
46+
> All contributions to this project will be published under the MIT License. By submitting a pull request or filing a bug, issue, or feature request, you are agreeing to comply with this waiver of copyright interest.
47+
48+
- Fork it ( https://github.com/InitPHP/Framework3/fork )
49+
- Create your feature branch (git checkout -b my-new-feature)
50+
- Commit your changes (git commit -am "Add some feature")
51+
- Push to the branch (git push origin my-new-feature)
52+
- Create a new Pull Request
53+
54+
## Credits
55+
56+
- [Muhammet ŞAFAK](https://www.muhammetsafak.com.tr) <<[email protected]>>
57+
58+
## License
59+
60+
Copyright © 2022 [MIT License](./LICENSE)

Diff for: system/Application.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework;
416

517
use InitPHP\Framework\Providers\{BootstrapServiceProvider,

Diff for: system/Base.php

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
213

14+
declare(strict_types=1);
315
namespace InitPHP\Framework;
416

517
use InitPHP\Framework\Database\Database;

Diff for: system/Console/Command.php

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
<?php
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
213

14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console;
416

5-
use InitPHP\Console\Input;
6-
use InitPHP\Console\Output;
7-
817
abstract class Command extends \InitPHP\Console\Command
918
{
1019
}

Diff for: system/Console/Commands/KeyGenerateCommand.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Console\Utils\ChangeDotEnv;

Diff for: system/Console/Commands/MakeCommandCommand.php

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

5-
use InitPHP\Console\Input;
6-
use InitPHP\Console\Output;
17+
use \InitPHP\Console\{Input, Output};
718
use InitPHP\Framework\Console\Command;
819
use InitPHP\Framework\Console\Utils\MakeFile;
920

Diff for: system/Console/Commands/MakeControllerCommand.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Console\Utils\MakeFile;

Diff for: system/Console/Commands/MakeEntityCommand.php

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
213

14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Console\Utils\MakeFile;

Diff for: system/Console/Commands/MakeMiddlewareCommand.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Console\Utils\MakeFile;

Diff for: system/Console/Commands/MakeModelCommand.php

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
213

14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Console\Utils\MakeFile;

Diff for: system/Console/Commands/MakeProviderCommand.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Console\Utils\MakeFile;

Diff for: system/Console/Commands/MakeRequestCommand.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Console\Utils\MakeFile;

Diff for: system/Console/Commands/RouteListCommand.php

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
213

14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use InitPHP\Framework\Base;

Diff for: system/Console/Commands/ServeCommand.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use \InitPHP\Console\{Input, Output};

Diff for: system/Console/Commands/StorageLinkCommand.php

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
<?php
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
213

14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

5-
use InitPHP\Console\Input;
6-
use InitPHP\Console\Output;
17+
use \InitPHP\Console\{Input, Output};
718
use InitPHP\Framework\Console\Command;
819

920
class StorageLinkCommand extends Command

Diff for: system/Console/Commands/ViewCacheClearCommand.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Commands;
416

517
use \InitPHP\Console\{Input, Output};

Diff for: system/Console/Utils/ChangeDotEnv.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
2-
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
13+
14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Utils;
416

517
class ChangeDotEnv

Diff for: system/Console/Utils/MakeFile.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
<?php
2+
/**
3+
* InitPHP Framework
4+
*
5+
* This file is part of InitPHP.
6+
*
7+
* @author Muhammet ŞAFAK <[email protected]>
8+
* @copyright Copyright © 2023 InitPHP Framework
9+
* @license http://initphp.github.io/license.txt MIT
10+
* @version 3.0
11+
* @link https://www.muhammetsafak.com.tr
12+
*/
213

14+
declare(strict_types=1);
315
namespace InitPHP\Framework\Console\Utils;
416

517
class MakeFile
618
{
7-
819
protected string $template;
920

1021
public function __construct(string $path)

0 commit comments

Comments
 (0)