Skip to content

Commit 810770b

Browse files
committed
Moved examples from now-php and upgrade to latest runtime v3
1 parent 192cdb4 commit 810770b

File tree

102 files changed

+9666
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+9666
-3
lines changed

.github/ISSUE_TEMPLATE/Bug.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Bug report 🐛
3+
about: Something is not working as expected!
4+
---
5+
6+
# Bug report
7+
8+
- Example: xyz
9+
- URL: Yes (*.now.sh) / No
10+
- Repository: Yes / No
11+
12+
## Description
13+
14+
<!-- Describe it -->

.github/ISSUE_TEMPLATE/Feature.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Feature request 🚀
3+
about: I would appreciate new example or something!
4+
---
5+
6+
# Feature Request
7+
8+
<!-- Describe it -->

.github/ISSUE_TEMPLATE/Question.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Question ❓
3+
about: Ask about anything!
4+
---
5+
6+
# Question
7+
8+
<!-- Describe it -->

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.PHONY: deploy
2+
.PHONY: now-php now-php-composer
3+
.PHONY: now-php-framework-lumen now-php-framework-nette now-php-framework-phalcon now-php-framework-slim now-php-framework-symfony-microservice
4+
5+
deploy:
6+
cd ${PROJECT} && now -n now-examples-${PROJECT} -S juicyfx
7+
8+
##################
9+
# Basic examples #
10+
##################
11+
12+
now-php:
13+
PROJECT=php $(MAKE) deploy
14+
15+
now-php-composer:
16+
PROJECT=php-composer $(MAKE) deploy
17+
18+
##################
19+
# Basic examples #
20+
##################
21+
22+
now-php-framework-lumen:
23+
PROJECT=php-framework-lumen $(MAKE) deploy
24+
25+
now-php-framework-nette:
26+
PROJECT=php-framework-nette $(MAKE) deploy
27+
28+
now-php-framework-phalcon:
29+
PROJECT=php-framework-phalcon $(MAKE) deploy
30+
31+
now-php-framework-slim:
32+
PROJECT=php-framework-slim $(MAKE) deploy
33+
34+
now-php-framework-symfony-microservice:
35+
PROJECT=php-framework-symfony-microservice $(MAKE) deploy

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
1-
# ZEIT Now Examples by Juicy(fx)
1+
<h1 align=center>Juicy(fx) ZEIT Examples</h1>
2+
3+
<p align=center>
4+
📦 Examples of Juicy(fx) runtimes for ZEIT Now.
5+
</p>
6+
7+
<p align=center>
8+
🕹 <a href="https://f3l1x.io">f3l1x.io</a> | 💻 <a href="https://github.com/f3l1x">f3l1x</a> | 🐦 <a href="https://twitter.com/xf3l1x">@xf3l1x</a>
9+
</p>
10+
11+
-----
12+
13+
## ⚙️ Usage
14+
15+
1. Clone repository `git clone [email protected]:juicyfx/now-examples.git`.
16+
2. Browse single example, `cd /php`.
17+
3. Deploy to ZEIT Now, `now`.
18+
19+
**Click & Go**
20+
21+
[![Deploy with ZEIT Now](https://zeit.co/button)](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php)
22+
23+
24+
## 📦 Examples
225

326
| Example | Description | Demo | Deploy |
427
|-------------|-------------|------|--------|
528
| [PHP](/php) | Static frontend with PHP function. | [👀🕶](https://now-examples-php.now.sh) | [▲▲▲](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php) |
29+
| [PHP - Composer](/php-compose) | Install dependencies using Composer. | [👀🕶](https://now-examples-php-composer.now.sh) | [▲▲▲](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php-composer) |
30+
| [PHP - Nette](/php-framework-nette) | Framework Nette. | [👀🕶](https://now-examples-php-framework-lumen.now.sh) | [▲▲▲](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php-framework-lumen) |
31+
| [PHP - Phalcon](/php-framework-phalcon) | Framework Phalcon. | [👀🕶](https://now-examples-php-framework-phalcon.now.sh) | [▲▲▲](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php-framework-phalcon) |
32+
| [PHP - Slim](/php-framework-slim) | Framework Slim. | [👀🕶](https://now-examples-php-framework-slim.now.sh) | [▲▲▲](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php-framework-slim) |
33+
| [PHP - Symfony (microservice)](/php-framework-symfony-microservice) | Framework Symfony (microservice). | [👀🕶](https://now-examples-php-framework-symfony-microservice.now.sh) | [▲▲▲](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php-framework-symfony-microservice) |
34+
| [PHP - Lumen](/php-framework-lumen) | Framework Lumen. | [👀🕶](https://now-examples-php-framework-lumen.now.sh) | [▲▲▲](https://zeit.co/new/project?template=https://github.com/juicyfx/now-examples/tree/master/php-framework-lumen) |
35+
36+
37+
## 📝 License
38+
39+
Copyright © 2019 [f3l1x](https://github.com/f3l1x).
40+
This project is [MIT](LICENSE) licensed.

php-composer/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

php-composer/.nowignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

php-composer/api/index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
require_once __DIR__ . '/../vendor/autoload.php';
4+
5+
Tracy\Debugger::enable(Tracy\Debugger::DEVELOPMENT);
6+
7+
throw new RuntimeException('Hello Tracy!');

php-composer/composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"require": {
3+
"php": "^7.3",
4+
"tracy/tracy": "^2.6.0"
5+
}
6+
}

php-composer/composer.lock

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

0 commit comments

Comments
 (0)