You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,21 @@ I can't take much credit at all for what's going on here. Pretty much all the cr
8
8
9
9
1. Install the bundle
10
10
11
-
php artisan bundle:install composer
11
+
php artisan bundle:install composeur
12
12
13
-
1. Add composer to ```bundles.php```
13
+
1. Add composeur to ```bundles.php```
14
14
15
15
return array(
16
-
'composer' => array(
16
+
'composeur' => array(
17
17
'auto' => true,
18
18
),
19
19
);
20
20
21
-
1. Set up composer's "auto-update" capability ([Set up your database first](http://laravel.com/docs/database/config))
21
+
1. Set up composeur's "auto-update" capability ([Set up your database first](http://laravel.com/docs/database/config))
22
22
23
-
php artisan composer::setup:auto_update
23
+
php artisan composeur::setup:auto_update
24
24
25
-
1. Create ```application/config/composer.php```
25
+
1. Create ```application/config/composeur.php```
26
26
27
27
return array(
28
28
'auto_update' => true, /* <== You'll need that */
@@ -40,7 +40,7 @@ I can't take much credit at all for what's going on here. Pretty much all the cr
40
40
41
41
### A Partial Example
42
42
43
-
With this ```application/config/composer.php```
43
+
With this ```application/config/composeur.php```
44
44
45
45
return array(
46
46
'auto_update' => true,
@@ -64,21 +64,21 @@ Monolog will be available anywhere in your Laravel application, so you could say
64
64
65
65
1. Install the bundle
66
66
67
-
php artisan bundle:install composer
67
+
php artisan bundle:install composeur
68
68
69
-
1. Add composer to ```bundles.php```
69
+
1. Add composeur to ```bundles.php```
70
70
71
71
return array(
72
-
'composer' => array(
72
+
'composeur' => array(
73
73
'auto' => true,
74
74
),
75
75
);
76
76
77
-
1. Set up composer's "auto-update" capability ([Set up your database first](http://laravel.com/docs/database/config))
77
+
1. Set up composeur (installs Composer in the ```{base}``` dir)
78
78
79
-
php artisan composer::setup
79
+
php artisan composeur::setup
80
80
81
-
1. Create ```application/config/composer.php``` (or don't, see below)
81
+
1. Create ```application/config/composeur.php``` (or don't, see below)
82
82
83
83
return array(
84
84
'auto_update' => false, /* <== This can be omitted */
@@ -88,22 +88,22 @@ Monolog will be available anywhere in your Laravel application, so you could say
88
88
),
89
89
);
90
90
91
-
1. Now use the composer bundle's Cli task
91
+
1. Now use the composeur bundle's Cli task
92
92
93
-
php artisan composer::cli:install
93
+
php artisan composeur::cli:install
94
94
95
95
or
96
96
97
-
php artisan composer::cli:update
97
+
php artisan composeur::cli:update
98
98
99
99
etc...
100
100
101
101
##### Note: With ```auto_update``` set to false, you are responsible for installing and updating your Composer packages.
102
102
103
103
### More thoughts
104
104
105
-
It's not necessary to use the composer bundle's Cli task to run Composer. Running ```php artisan composer::setup``` installs composer.phar in the ```{base}``` directory, so from there you can simply run ```php composer.phar [command]```.
105
+
It's not necessary to use the composeur bundle's Cli task to run Composer. Running ```php artisan composeur::setup``` installs composer.phar in the ```{base}``` directory, so from there you can simply run ```php composer.phar [command]```.
106
106
107
-
If you choose, you need not create ```application/config/composer.php```. As mentioned above, after the composer bundle is setup, you can use it from the ```{base}``` directory, so just create your own ```composer.json``` file there and get going. **Warning:** if you create your own ```composer.json``` and later create ```application/config/composer.php```, your ```composer.json``` might get eaten.
107
+
If you choose, you need not create ```application/config/composeur.php```. As mentioned above, after the composeur bundle is setup, you can use it from the ```{base}``` directory, so just create your own ```composer.json``` file there and get going. **Warning:** if you create your own ```composer.json``` and later create ```application/config/composeur.php```, your ```composer.json``` might get eaten.
108
108
109
109
This bundle adds Composer's autoloader to PHP's collection of autoloaders. It's added after Laravel's, so Laravel should have the first shot at resolving classes and namespaces. I suppose this means there is *some* chance of namespaces being resolved by Laravel when you want them to be resolved by Composer, but I guess you can figure that out.
0 commit comments