Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
394 changes: 373 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,24 @@ class SomeMiddleware
}
}
```
## License

This project is licensed under the **Mozilla Public License 2.0 (MPL-2.0)** — a free, open-source license that:

- Requires preservation of copyright and license notices,
- Allows commercial and non-commercial use,
- Requires that any modifications to the original files remain open under MPL-2.0,
- Permits combining with proprietary code in larger works.

📄 Full license text: [LICENSE](./LICENSE)
🌐 Official MPL-2.0 page: https://mozilla.org/MPL/2.0/

--------------------------
Проект распространяется под лицензией **Mozilla Public License 2.0 (MPL-2.0)**. Это означает:
- Вы можете свободно использовать, изменять и распространять код.
- При изменении файлов, содержащих исходный код из этого репозитория, вы обязаны оставить их открытыми под той же лицензией.
- Вы **обязаны сохранять уведомления об авторстве** и ссылку на оригинал.
- Вы можете встраивать код в проприетарные проекты, если исходные файлы остаются под MPL.

📄 Полный текст лицензии (на английском): [LICENSE](./LICENSE)
🌐 Официальная страница: https://mozilla.org/MPL/2.0/
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"rest",
"restful"
],
"license": "MIT",
"license": "MPL-2.0",
"authors": [
{
"name": "Jagepard",
"name": "Korotkov Danila",
"email": "jagepard@yandex.ru",
"homepage": "https://jagepard.ru",
"homepage": "https://jagepard.ru",
"role": "Developer"
}
],
Expand Down
12 changes: 7 additions & 5 deletions src/Router.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/**
* @author : Jagepard <jagepard@yandex.ru">
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router;
Expand Down
12 changes: 7 additions & 5 deletions src/RouterFacade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/**
* @author : Jagepard <jagepard@yandex.ru">
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router;
Expand Down
12 changes: 7 additions & 5 deletions src/RouterInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

declare(strict_types=1);
<?php

/**
* @author : Jagepard <jagepard@yandex.ru">
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router;
Expand Down
10 changes: 6 additions & 4 deletions src/Routing.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

declare(strict_types=1);

/**
* @author : Jagepard <jagepard@yandex.ru">
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router;
Expand Down
12 changes: 7 additions & 5 deletions src/Traits/RouterAnnotationTrait.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/**
* @author : Jagepard <jagepard@yandex.ru>
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router\Traits;
Expand Down
12 changes: 7 additions & 5 deletions src/Traits/RouterRequestMethodTrait.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/**
* @author : Jagepard <jagepard@yandex.ru>
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router\Traits;
Expand Down
14 changes: 9 additions & 5 deletions tests/RouterAnnotationTraitTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/**
* @author : Jagepard <jagepard@yandex.ru">
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*
* phpunit src/tests/ContainerTest --coverage-html src/tests/coverage-html
*/

namespace Rudra\Router\Tests;
Expand Down
14 changes: 8 additions & 6 deletions tests/RouterTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/**
* @author : Jagepard <jagepard@yandex.ru">
* @license https://mit-license.org/ MIT
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* phpunit src/tests/ContainerTest --coverage-html src/tests/coverage-html
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*
* phpunit src/tests/ContainerTest --coverage-html src/tests/coverage-html
*/

namespace Rudra\Router\Tests;
Expand Down
11 changes: 10 additions & 1 deletion tests/Stub/Controllers/MainController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
<?php declare(strict_types=1);

/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router\Tests\Stub\Controllers;

Expand Down
11 changes: 10 additions & 1 deletion tests/Stub/Middleware/Middleware.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
<?php declare(strict_types=1);

/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router\Tests\Stub\Middleware;

Expand Down
11 changes: 10 additions & 1 deletion tests/Stub/route.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
<?php declare(strict_types=1);

/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* @author Korotkov Danila (Jagepard) <jagepard@yandex.ru>
* @license https://mozilla.org/MPL/2.0/ MPL-2.0
*/

namespace Rudra\Router\Tests\Stub;

Expand Down
Loading