@@ -11,18 +11,26 @@ This cartridge can be used as a base to develop PHP applications relying on PHP
11
11
5 . Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/ )
12
12
6 . Click the last link to start the build, it will take about an hour
13
13
7 . Clone the application's repository locally (or pull changes if you have already cloned it)
14
- 8 . Starting coding your PHP application
14
+ 8 . Rename the ` _build file ` to ` build ` in the ` /.openshift/action_hooks/ ` directory to activate Composer
15
+ 9 . Commit this file
16
+ 10 . Make it executable with ` git update-index --chmod=+x .openshift/action_hooks/build `
17
+ 11 . Commit this file again and push it too.
18
+ 9 . Starting coding your PHP application
15
19
16
20
## Using a PHP Framework
17
21
18
22
To demonstrate the usage of Composer, we will install the ZendFramework skeleton application:
19
23
20
24
1 . Delete the ` index.cgi ` file in the ` /public ` directory
21
- 2 . Download the ZendFramework skeleton application as a ` .zip ` file from https://github.com/zendframework/ZendSkeletonApplication
22
- 3 . Unzip this file at the root of your git repository (i.e., the content of ` /public ` in the ` .zip ` must be poured in your local ` /public ` directory)
23
- 4 . Commit and push all modifications
24
- 5 . During the git push, Composer will download all dependencies found in ` composer.json `
25
- 6 . Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/ )
25
+ 2 . Rename the ` _build file ` to ` build ` in the ` /.openshift/action_hooks/ ` directory if you have not done so already
26
+ 3 . Commit this file
27
+ 4 . Make it executable with ` git update-index --chmod=+x .openshift/action_hooks/build `
28
+ 5 . Commit this file again and push it too
29
+ 6 . Download the ZendFramework skeleton application as a ` .zip ` file from https://github.com/zendframework/ZendSkeletonApplication
30
+ 7 . Unzip this file at the root of your git repository (i.e., the content of ` /public ` in the ` .zip ` must be poured in your local ` /public ` directory)
31
+ 8 . Commit and push all modifications
32
+ 9 . During the git push, Composer will download all dependencies found in ` composer.json `
33
+ 10 . Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/ )
26
34
27
35
A similar procedure can be used for other PHP frameworks.
28
36
0 commit comments