@lando/php 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1722,"argv":["/opt/hostedtoolcache/node/14.19.0/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1646228460765,"ppid":1721,"coverageFilename":"/home/runner/work/php/php/.nyc_output/1c452904-b137-4113-9661-53ba31796a09.json","externalId":"","uuid":"1c452904-b137-4113-9661-53ba31796a09","files":["/home/runner/work/php/php/lib/utils.js","/home/runner/work/php/php/services/php/builder.js"]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":1734,"argv":["/opt/hostedtoolcache/node/14.19.0/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1646228461512,"ppid":1722,"coverageFilename":"/home/runner/work/php/php/.nyc_output/54c95cd9-bae5-4976-a621-48228014191e.json","externalId":"","uuid":"54c95cd9-bae5-4976-a621-48228014191e","files":[]}
@@ -1 +1 @@
1
- {"processes":{"a93a2974-f0ba-49d3-9e61-87c218714d04":{"parent":null,"children":[]},"b05f40b6-a318-4feb-bdf3-929de4f5fdcc":{"parent":null,"children":[]}},"files":{"/home/runner/work/php/php/lib/utils.js":["b05f40b6-a318-4feb-bdf3-929de4f5fdcc"],"/home/runner/work/php/php/services/php/builder.js":["b05f40b6-a318-4feb-bdf3-929de4f5fdcc"]},"externalIds":{}}
1
+ {"processes":{"1c452904-b137-4113-9661-53ba31796a09":{"parent":null,"children":[]},"54c95cd9-bae5-4976-a621-48228014191e":{"parent":null,"children":[]}},"files":{"/home/runner/work/php/php/lib/utils.js":["1c452904-b137-4113-9661-53ba31796a09"],"/home/runner/work/php/php/services/php/builder.js":["1c452904-b137-4113-9661-53ba31796a09"]},"externalIds":{}}
package/README.md CHANGED
@@ -1,65 +1,43 @@
1
- # Lando PHP Plugin
1
+ # PHP Lando Plugin
2
2
 
3
- The lando PHP plugin service.
3
+ This is the _official_ [Lando](https://lando.dev) plugin for [PHP](https://php.net). When installed it...
4
4
 
5
- ## Installation
5
+ * Allows users to run various `php` versions
6
+ * Serves applications over `nginx` or `apache`
7
+ * Runs in `cli` mode
8
+ * Comes with easy `composer` support
6
9
 
7
- ```bash
8
- # With npm
9
- npm install @lando/php
10
+ Of course, once a user is running their PHP project with Lando they can take advantage of [all the other awesome development features](https://docs.lando.dev) Lando provides.
10
11
 
11
- # With yarn
12
- yarn add @lando/php
13
- ```
14
-
15
- ## Issues, Questions and Support
16
-
17
- If you have a question or would like some community support we recommend you [join us on Slack](https://launchpass.com/devwithlando). Note that this is the Slack community for [Lando](https://lando.dev) but we are more than happy to help with this module as well!
18
-
19
- If you'd like to report a bug or submit a feature request then please [use the issue queue](https://github.com/lando/php/issues/new/choose) in this repo.
20
-
21
- ## Changelog
22
-
23
- We try to log all changes big and small in both [THE CHANGELOG](https://github.com/lando/php/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/php/releases).
12
+ ## Basic Usage
24
13
 
14
+ Add a `php` service to your Landofile
25
15
 
26
- ## Development
27
-
28
- * Requires [Node 14+](https://nodejs.org/dist/latest-v14.x/)
29
- * Prefers [Yarn](https://classic.yarnpkg.com/lang/en/docs/install)
30
-
31
- ```bash
32
- git clone https://github.com/lando/php.git && cd php
33
- yarn install
16
+ ```yaml
17
+ services:
18
+ myservice:
19
+ type: php:8.0
20
+ via: nginx
21
+ webroot: www
34
22
  ```
35
23
 
36
- If you dont' want to install Node 14 or Yarn for whatever reason you can install [Lando](https://docs.lando.dev/basics/installation.html) and use that:
24
+ For more info you should check out the [docs](https://docs.lando.dev/php):
37
25
 
38
- ```bash
39
- git clone https://github.com/lando/php.git && cd php
40
- # Install deps and get node
41
- lando start
26
+ * [Getting Started](https://docs.lando.dev/php/)
27
+ * [Configuration](https://docs.lando.dev/php/config.html)
28
+ * [Guides](https://docs.lando.dev/php/accessing-logs.html)
29
+ * [Examples](https://github.com/lando/php/tree/main/examples)
30
+ * [Development](https://docs.lando.dev/php/development.html)
42
31
 
43
- # Run commands
44
- lando node
45
- lando yarn
46
- ```
47
-
48
- ## Testing
32
+ ## Issues, Questions and Support
49
33
 
50
- ```bash
51
- # Lint the code
52
- yarn lint
34
+ If you have a question or would like some community support we recommend you [join us on Slack](https://launchpass.com/devwithlando).
53
35
 
54
- # Run unit tests
55
- yarn test
56
- ```
36
+ If you'd like to report a bug or submit a feature request then please [use the issue queue](https://github.com/lando/php/issues/new/choose) in this repo.
57
37
 
58
- ## Releasing
38
+ ## Changelog
59
39
 
60
- ```bash
61
- yarn release
62
- ```
40
+ We try to log all changes big and small in both [THE CHANGELOG](https://github.com/lando/php/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/php/releases).
63
41
 
64
42
  ## Contributors
65
43
 
@@ -69,6 +47,7 @@ yarn release
69
47
 
70
48
  Made with [contributors-img](https://contrib.rocks).
71
49
 
72
- ## Other Resources
50
+ ## Other Selected Resources
73
51
 
74
- * [Important advice](https://www.youtube.com/watch?v=WA4iX5D9Z64)
52
+ * [LICENSE](https://github.com/lando/php/blob/main/LICENSE.md)
53
+ * [The best professional advice ever](https://www.youtube.com/watch?v=tkBVDh7my9Q)
@@ -115,10 +115,9 @@
115
115
  </div><!-- /wrapper -->
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
119
- at Wed Feb 02 2022 13:18:41 GMT+0000 (Coordinated Universal Time)
118
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
+ at Wed Mar 02 2022 13:41:01 GMT+0000 (Coordinated Universal Time)
120
120
  </div>
121
- </div>
122
121
  <script src="prettify.js"></script>
123
122
  <script>
124
123
  window.onload = function () {
@@ -100,10 +100,9 @@
100
100
  </div><!-- /wrapper -->
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Wed Feb 02 2022 13:18:41 GMT+0000 (Coordinated Universal Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Wed Mar 02 2022 13:41:01 GMT+0000 (Coordinated Universal Time)
105
105
  </div>
106
- </div>
107
106
  <script src="../prettify.js"></script>
108
107
  <script>
109
108
  window.onload = function () {
@@ -249,10 +249,9 @@ const _ = <span class="cstat-no" title="statement not covered" >require('lodash'
249
249
  </div><!-- /wrapper -->
250
250
  <div class='footer quiet pad2 space-top1 center small'>
251
251
  Code coverage generated by
252
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
253
- at Wed Feb 02 2022 13:18:41 GMT+0000 (Coordinated Universal Time)
252
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
253
+ at Wed Mar 02 2022 13:41:01 GMT+0000 (Coordinated Universal Time)
254
254
  </div>
255
- </div>
256
255
  <script src="../prettify.js"></script>
257
256
  <script>
258
257
  window.onload = function () {
@@ -603,7 +603,7 @@ const parseConfig = <span class="cstat-no" title="statement not covered" ><span
603
603
  ],
604
604
  confSrc: __dirname,
605
605
  command: ['sh -c \'a2enmod rewrite &amp;&amp; apache2-foreground\''],
606
- composer_version: '2.0.7',
606
+ composer_version: '2.2.6',
607
607
  image: 'apache',
608
608
  defaultFiles: {
609
609
  _php: 'php.ini',
@@ -711,10 +711,9 @@ const parseConfig = <span class="cstat-no" title="statement not covered" ><span
711
711
  </div><!-- /wrapper -->
712
712
  <div class='footer quiet pad2 space-top1 center small'>
713
713
  Code coverage generated by
714
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
715
- at Wed Feb 02 2022 13:18:41 GMT+0000 (Coordinated Universal Time)
714
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
715
+ at Wed Mar 02 2022 13:41:01 GMT+0000 (Coordinated Universal Time)
716
716
  </div>
717
- </div>
718
717
  <script src="../../prettify.js"></script>
719
718
  <script>
720
719
  window.onload = function () {
@@ -100,10 +100,9 @@
100
100
  </div><!-- /wrapper -->
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
104
- at Wed Feb 02 2022 13:18:41 GMT+0000 (Coordinated Universal Time)
103
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
+ at Wed Mar 02 2022 13:41:01 GMT+0000 (Coordinated Universal Time)
105
105
  </div>
106
- </div>
107
106
  <script src="../../prettify.js"></script>
108
107
  <script>
109
108
  window.onload = function () {
@@ -69,7 +69,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
69
69
  && docker-php-ext-install soap \
70
70
  && docker-php-ext-install zip \
71
71
  && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
72
- && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.0.7 \
72
+ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.2.6 \
73
73
  && php -r "unlink('composer-setup.php');" \
74
74
  && chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \
75
75
  && apt-get -y clean \
@@ -69,7 +69,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
69
69
  && docker-php-ext-install soap \
70
70
  && docker-php-ext-install zip \
71
71
  && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
72
- && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.0.7 \
72
+ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.2.6 \
73
73
  && php -r "unlink('composer-setup.php');" \
74
74
  && chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \
75
75
  && apt-get -y clean \
@@ -70,7 +70,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
70
70
  && docker-php-ext-install soap \
71
71
  && docker-php-ext-install zip \
72
72
  && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
73
- && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.0.7 \
73
+ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.2.6 \
74
74
  && php -r "unlink('composer-setup.php');" \
75
75
  && chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \
76
76
  && apt-get -y clean \
@@ -70,7 +70,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
70
70
  && docker-php-ext-install soap \
71
71
  && docker-php-ext-install zip \
72
72
  && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
73
- && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.0.7 \
73
+ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.2.6 \
74
74
  && php -r "unlink('composer-setup.php');" \
75
75
  && chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \
76
76
  && apt-get -y clean \
@@ -70,7 +70,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
70
70
  && docker-php-ext-install soap \
71
71
  && docker-php-ext-install zip \
72
72
  && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
73
- && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.0.7 \
73
+ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.2.6 \
74
74
  && php -r "unlink('composer-setup.php');" \
75
75
  && chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \
76
76
  && apt-get -y clean \
@@ -70,7 +70,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
70
70
  && docker-php-ext-install soap \
71
71
  && docker-php-ext-install zip \
72
72
  && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
73
- && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.0.7 \
73
+ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=2.2.6 \
74
74
  && php -r "unlink('composer-setup.php');" \
75
75
  && chsh -s /bin/bash www-data && mkdir -p /var/www/.composer && chown -R www-data:www-data /var/www \
76
76
  && apt-get -y clean \
package/netlify.toml CHANGED
@@ -1,10 +1,7 @@
1
1
  [build]
2
2
  base = "./"
3
- publish = "_site"
3
+ publish = "docs/.vuepress/dist"
4
4
  command = "yarn docs:build"
5
- # This sort of lets us build only on tagged commits to prod
6
- # [context.production]
7
- # ignore = "if git diff $CACHED_COMMIT_REF $COMMIT_REF ./package.json | grep - | grep version && git diff $CACHED_COMMIT_REF $COMMIT_REF ./package.json | grep + | grep version; then exit 1; else exit 0; fi"
8
5
 
9
6
  # Sets our asset optimization
10
7
  [build.processing.css]
@@ -23,3 +20,13 @@
23
20
  for = "/images/*"
24
21
  [headers.values]
25
22
  Cache-Control = "public, max-age=31536000"
23
+
24
+ # We need this so preview environments and the base site look ok on their own
25
+ [[redirects]]
26
+ from = "/"
27
+ to = "/php"
28
+ status = 200
29
+ [[redirects]]
30
+ from = "/php/*"
31
+ to = "/:splat"
32
+ status = 200
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lando/php",
3
3
  "description": "A Lando plugin that provides a tight integration with PHP.",
4
- "version": "0.5.1",
4
+ "version": "0.5.2",
5
5
  "author": "John Ouellet @labboy0276",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/php",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "scripts": {
33
33
  "coverage": "nyc report --reporter=text-lcov | coveralls",
34
- "docs:dev": "vuepress dev docs",
35
- "docs:build": "vuepress build docs --dest _site",
34
+ "docs:dev": "vuepress dev docs --clean-cache --clean-temp",
35
+ "docs:build": "vuepress build docs",
36
36
  "docs:lint": "eslint -c docs/.eslintrc.json --quiet docs/.vuepress",
37
37
  "lint": "eslint --quiet . && yarn docs:lint",
38
38
  "release": "bump --prompt --tag --all --push",
@@ -48,7 +48,7 @@
48
48
  "devDependencies": {
49
49
  "@babel/eslint-parser": "^7.16.0",
50
50
  "@lando/leia": "^0.6.4",
51
- "@lando/vuepress-theme-lando-docs": "^0.2.3",
51
+ "@lando/vuepress-theme-default-plus": "1.0.0-beta.18",
52
52
  "chai": "^4.3.4",
53
53
  "command-line-test": "^1.0.10",
54
54
  "eslint": "^7.32.0",
@@ -57,6 +57,6 @@
57
57
  "mocha": "^9.1.2",
58
58
  "nyc": "^15.1.0",
59
59
  "version-bump-prompt": "^4.2.1",
60
- "vuepress": "^2.0.0-beta.27"
60
+ "vuepress": "^2.0.0-beta.35"
61
61
  }
62
62
  }
@@ -110,7 +110,7 @@ module.exports = {
110
110
  ],
111
111
  confSrc: __dirname,
112
112
  command: ['sh -c \'a2enmod rewrite && apache2-foreground\''],
113
- composer_version: '2.0.7',
113
+ composer_version: '2.2.6',
114
114
  image: 'apache',
115
115
  defaultFiles: {
116
116
  _php: 'php.ini',
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1676,"argv":["/opt/hostedtoolcache/node/14.18.3/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1643807920787,"ppid":1665,"coverageFilename":"/home/runner/work/php/php/.nyc_output/a93a2974-f0ba-49d3-9e61-87c218714d04.json","externalId":"","uuid":"a93a2974-f0ba-49d3-9e61-87c218714d04","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1665,"argv":["/opt/hostedtoolcache/node/14.18.3/x64/bin/node","/home/runner/work/php/php/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/php/php","time":1643807920051,"ppid":1664,"coverageFilename":"/home/runner/work/php/php/.nyc_output/b05f40b6-a318-4feb-bdf3-929de4f5fdcc.json","externalId":"","uuid":"b05f40b6-a318-4feb-bdf3-929de4f5fdcc","files":["/home/runner/work/php/php/lib/utils.js","/home/runner/work/php/php/services/php/builder.js"]}