Skip to content

Commit 7613c13

Browse files
authored
Merge pull request #115 from utopia-php/docs-improve-readme
Docs: Improve readme
2 parents dc539ee + ea29fe6 commit 7613c13

File tree

12 files changed

+74
-113
lines changed

12 files changed

+74
-113
lines changed

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ body:
3434
- type: dropdown
3535
id: utopia-version
3636
attributes:
37-
label: "🎲 Utopia Framework version"
37+
label: "🎲 Utopia HTTP version"
3838
description: "What version of Utopia are you running?"
3939
options:
4040
- Version 0.18.x

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
with:
1616
php-version: '8.1'
1717

18+
- name: Validate composer.json and composer.lock
19+
run: composer validate --strict
20+
1821
- name: Setup Docker
1922
run: docker-compose up -d --build
2023

@@ -23,6 +26,6 @@ jobs:
2326

2427
- name: Run FPM Tests
2528
run: docker compose exec fpm vendor/bin/phpunit --configuration phpunit.xml
26-
29+
2730
- name: Run Swoole Tests
2831
run: docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml

CONTRIBUTING.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Contributing
22

3-
We would ❤️ for you to contribute to Framework and help make it better! We want contributing to Framework to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including issues, new docs as well as updates and tweaks, blog posts, workshops, and more.
3+
We would ❤️ for you to contribute to Utopia HTTP and help make it better! We want contributing to this library to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including issues, new docs as well as updates and tweaks, blog posts, workshops, and more.
44

55
## How to Start?
66

77
If you are worried or don’t know where to start, check out our next section explaining what kind of help we could use and where can you get involved. You can reach out with questions to [Eldad Fux (@eldadfux)](https://twitter.com/eldadfux) or [@appwrite_io](https://twitter.com/appwrite_io) on Twitter, and anyone from the [Appwrite team on Discord](https://discord.gg/GSeTUeA). You can also submit an issue, and a maintainer can guide you!
88

9-
You can get an in-depth understanding of the Utopia-PHP framework in our [Getting Started](docs/Getting-Starting-Guide.md) guide.
9+
You can get an in-depth understanding of Utopia HTTP in our [Getting Started](docs/Getting-Starting-Guide.md) guide.
1010

1111
## Code of Conduct
1212

13-
Help us keep framework open and inclusive. Please read and follow our [Code of Conduct](/CODE_OF_CONDUCT.md).
13+
Help us keep Utopia HTTP open and inclusive. Please read and follow our [Code of Conduct](/CODE_OF_CONDUCT.md).
1414

1515
## Submit a Pull Request 🚀
1616

@@ -72,38 +72,38 @@ $ git push origin [name_of_your_new_branch]
7272

7373
## Introducing New Features
7474

75-
We would 💖 you to contribute to Framework, but we would also like to make sure Framework is as great as possible and loyal to its vision and mission statement 🙏.
75+
We would 💖 you to contribute to Utopia HTTP, but we would also like to make sure this library is as great as possible and loyal to its vision and mission statement 🙏.
7676

7777
For us to find the right balance, please open an issue explaining your ideas before introducing a new pull request.
7878

79-
This will allow the Framework community to have sufficient discussion about the new feature value and how it fits in the product roadmap and vision.
79+
This will allow the community to have sufficient discussion about the new feature value and how it fits in the product roadmap and vision.
8080

81-
This is also important for the Framework lead developers to be able to give technical input and different emphasis regarding the feature design and architecture. Some bigger features might need to go through our [RFC process](https://github.com/appwrite/rfc).
81+
This is also important for the repository owners to be able to give technical input and different emphasis regarding the feature design and architecture. Some bigger features might need to go through our [RFC process](https://github.com/appwrite/rfc).
8282

8383
## Other Ways to Help
8484

85-
Pull requests are great, but there are many other areas where you can help Framework
85+
Pull requests are great, but there are many other areas where you can help:
8686

8787
### Blogging & Speaking
8888

89-
Blogging, speaking about, or creating tutorials about one of Framework's many features is great way to contribute and help our project grow.
89+
Creating blog posts, giving talks, or developing tutorials about one of this library's many features are excellent ways to contribute and help our project grow.
9090

9191
### Presenting at Meetups
9292

93-
Presenting at meetups and conferences about your Framework projects. Your unique challenges and successes in building things with Framework can provide great speaking material. We’d love to review your talk abstract/CFP, so get in touch with us if you’d like some help!
93+
Presenting at meetups and conferences about your Utopia projects. Your unique challenges and successes in building things with this library can provide great speaking material. We’d love to review your conference talk abstract, so get in touch with us if you’d like some help!
9494

9595
### Sending Feedbacks & Reporting Bugs
9696

97-
Sending feedback is a great way for us to understand your different use cases of Framework better. If you had any issues, bugs, or want to share about your experience, feel free to do so on our GitHub issues page or at our [Discord channel](https://discord.gg/GSeTUeA).
97+
Sending feedback is a great way for us to understand your different use cases of this library better. If you had any issues, bugs, or want to share about your experience, feel free to do so on our GitHub issues page or at our [Discord channel](https://discord.gg/GSeTUeA).
9898

9999
### Submitting New Ideas
100100

101-
If you think Framework could use a new feature, please open an issue on our GitHub repository, stating as much information as you can think about your new idea and it's implications. We would also use this issue to gather more information, get more feedback from the community, and have a proper discussion about the new feature.
101+
If you think this library could use a new feature, please open an issue on our GitHub repository, stating as much information as you can think about your new idea and it's implications. We would also use this issue to gather more information, get more feedback from the community, and have a proper discussion about the new feature.
102102

103103
### Improving Documentation
104104

105105
Submitting documentation updates, enhancements, designs, or bug fixes. Spelling or grammar fixes will be very much appreciated.
106106

107107
### Helping Someone
108108

109-
Searching for Framework on Discord, GitHub, or StackOverflow and helping someone else who needs help. You can also help by teaching others how to contribute to Framework's repo!
109+
Searching for Utopia HTTP on Discord, GitHub, or StackOverflow and helping someone else who needs help. You can also help by teaching others how to contribute to this repo!

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
<img height="45" src="docs/logo.png" alt="Logo">
33
</p>
44

5-
[![Build Status](https://travis-ci.org/utopia-php/framework.svg?branch=master)](https://travis-ci.org/utopia-php/framework)
6-
![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/framework.svg)
5+
[![Build Status](https://travis-ci.org/utopia-php/http.svg?branch=master)](https://travis-ci.org/utopia-php/http)
6+
![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/http.svg)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://discord.gg/GSeTUeA)
88

9-
Utopia Framework is a PHP MVC based framework with minimal must-have features for professional, simple, advanced and secure web development. This library is maintained by the [Appwrite team](https://appwrite.io).
9+
Utopia HTTP is a PHP MVC based framework with minimal must-have features for professional, simple, advanced and secure web development. This library is maintained by the [Appwrite team](https://appwrite.io).
1010

11-
Utopia Framework is dependency-free. Any extra features, such as authentication or caching, will be available as standalone models in order to keep the framework core clean, light, and easy to learn.
11+
Utopia HTTP is dependency-free. Any extra features, such as authentication or caching are available as standalone models in order to keep the framework core clean, light, and easy to learn.
1212

1313
## Getting Started
1414

15-
Install using composer:
15+
Install using Composer:
16+
1617
```bash
17-
composer require utopia-php/framework
18+
composer require utopia-php/http
1819
```
1920

2021
Init your first application in `src/server.php`:
@@ -49,7 +50,7 @@ $http->start();
4950
Run HTTP server:
5051

5152
```bash
52-
php -S localhost:8000 src/server2.php
53+
php -S localhost:8000 src/server.php
5354
```
5455

5556
Send HTTP request:
@@ -60,7 +61,7 @@ curl http://localhost:8000/hello-world
6061

6162
### Server Adapters
6263

63-
The library supports server adapters to be able to run on any PHP setup. For instance, you could use the FPM server or the Swoole server.
64+
The library supports server adapters to be able to run on any PHP setup. You could use the FPM or Swoole server.
6465

6566
#### Use PHP FPM server
6667

@@ -203,7 +204,7 @@ Http::init()
203204
});
204205
```
205206

206-
Groups are designed to be actions that run during the lifecycle of requests to endpoints that have some logic in common. Groups allow you to prevent code duplication and are designed to be defined anywhere in your source code to allow flexibility.
207+
Groups are designed to be actions that run during the lifecycle of requests to endpoints that have some logic in common. Groups allow you to prevent code duplication and are designed to be defined anywhere in your source code to allow flexibility.
207208

208209
### Resources
209210

@@ -243,17 +244,17 @@ In advanced scenarios, resources can also be injected into other resources or en
243244

244245
Resources are designed to prepare dependencies or context for the request. Resources are not meant to do functional logic or return callbacks. For such a use case, you should use hooks.
245246

246-
To learn more about Framework architecture and features, check out more in-depth [Getting started guide](/docs/Getting-Starting-Guide.md).
247+
To learn more about architecture and features for this library, check out more in-depth [Getting started guide](/docs/Getting-Starting-Guide.md).
247248

248249
## System Requirements
249250

250-
Utopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.
251+
Utopia HTTP requires PHP 8.1 or later. We recommend using the latest PHP version whenever possible.
251252

252253
## More from Utopia
253254

254-
Our ecosystem supports other thin PHP projects aiming to extend the core PHP Utopia framework.
255+
Our ecosystem supports other thin PHP projects aiming to extend the core PHP Utopia HTTP.
255256

256-
Each project is focused on solving a single, very simple problem and you can use composer to include any of them in your next project.
257+
Each project is focused on solving a single, very simple problem and you can use composer to include any of them in your next project.
257258

258259
You can find all libraries in [GitHub Utopia organization](https://github.com/utopia-php).
259260

@@ -263,7 +264,7 @@ All code contributions - including those of people having commit access - must g
263264

264265
Fork the project, create a feature branch, and send us a pull request.
265266

266-
You can refer to the [Contributing Guide](https://github.com/utopia-php/framework/blob/master/CONTRIBUTING.md) for more info.
267+
You can refer to the [Contributing Guide](https://github.com/utopia-php/http/blob/master/CONTRIBUTING.md) for more info.
267268

268269
For security issues, please email security@appwrite.io instead of posting a public issue in GitHub.
269270

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"name": "utopia-php/framework",
3-
"description": "A simple, light and advanced PHP framework",
2+
"name": "utopia-php/http",
3+
"description": "A simple, light and advanced PHP HTTP framework",
44
"type": "library",
55
"keywords": [
66
"php",
77
"framework",
8+
"http",
89
"upf"
910
],
1011
"license": "MIT",

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)