Skip to content

Commit 888347a

Browse files
committed
fixed composer installation in the documentation
1 parent 2228077 commit 888347a

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@ You can then install Form2email using the following command:
1919

2020
~~~
2121
1. Create folder
22-
2. Create empty composer.json (if it doesn't exist)
23-
3. composer require justcoded/form-handler
22+
2. Create composer.json file (if it doesn't exist) with json record:
23+
24+
{
25+
"require": {
26+
"monolog/monolog": "1.0.*"
27+
}
28+
}
29+
30+
3. composer create-project
31+
32+
4. composer require justcoded/form-handler
2433
~~~
2534
### 1.2 Install by download directly (alternative)
2635

@@ -35,8 +44,6 @@ cd form-handler
3544
composer install
3645
~~~
3746

38-
39-
4047
## 2. Contact form
4148
Create contact form with 'action' attribute where to send the form-data when a form is submitted. You can implement
4249
multiple forms. You can find an example in the file examples/index.php
@@ -134,6 +141,7 @@ $message = [
134141
])
135142
];
136143
```
144+
137145
## 5. Template
138146
You can customize the email templates. You can place the form fields anywhere. To do this, put the name of the form
139147
field in curly braces. For example, in the file 'template-html.php':
@@ -160,7 +168,6 @@ field in curly braces. For example, in the file 'template-html.php':
160168

161169
Creating another contact form
162170
-----------------------------
163-
164171
You must create a new folder in the root of the site and make the steps(2-5) described above again.
165172

166173
Validation of text field generated automatically
@@ -185,8 +192,8 @@ $validation = [
185192
]
186193
];
187194
```
188-
## 3. Template format:
189195

196+
## 3. Template format:
190197
In the template add name of generated form fields grouped by name. In our example the name is 'links':
191198
```html
192199
...

0 commit comments

Comments
 (0)