Skip to content

Commit ecf981b

Browse files
committed
rename this package to 'web' and update the namespaces
1 parent 081433c commit ecf981b

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# DevNet Web Application Template
2-
This package is a minimal web API template of DevNet Framework, which is suitable for building microservices.
2+
This package is a web application template for DevNet Framework.
33

44
## Requirements
55
- [PHP](https://www.php.net/) version 8.1 or higher
66
- [Composer](https://getcomposer.org/) version 2.0 or higher
77

88
## Installation
9-
To create a DevNet minimal Web API project using composer, run the following command in your terminal:
9+
You can use DevNet CLI to create a web application project by running the following command in your terminal:
1010
```
11-
composer create-project devnet/web-template [project-Name]
11+
devnet new web --project [project-Name]
1212
```
13-
Or using DevNet CLI
13+
Or using composer
1414
```
15-
devnet new web --project [project-Name]
15+
composer create-project devnet/web [project-Name]
1616
```
1717

1818
## Documentation

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"name": "devnet/web-template",
2+
"name": "devnet/web",
33
"description": "Web Application",
44
"type": "project",
55
"license": "MIT",
66
"minimum-stability": "dev",
7-
"prefer-stable": true
7+
"prefer-stable": true,
8+
"require": {
9+
"devnet/core": "1.1.*"
10+
}
811
}

src/Program.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Application;
44

5-
use DevNet\Web\Extensions\ApplicationBuilderExtensions;
6-
use DevNet\Web\Extensions\ServiceCollectionExtensions;
7-
use DevNet\Web\Hosting\WebHost;
5+
use DevNet\Core\Extensions\ApplicationBuilderExtensions;
6+
use DevNet\Core\Extensions\ServiceCollectionExtensions;
7+
use DevNet\Core\Hosting\WebHost;
88

99
class Program
1010
{

0 commit comments

Comments
 (0)