Skip to content

Commit 35953fe

Browse files
authored
Fir updates (#78)
* README * Update nav * Update view * Fix link
1 parent 0416ad2 commit 35953fe

File tree

3 files changed

+72
-40
lines changed

3 files changed

+72
-40
lines changed

README.md

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,44 @@
1-
# php-getting-started
1+
# PHP Getting Started
22

33
A barebones PHP app that makes use of the [Slim](https://www.slimframework.com/) web framework, which can easily be deployed to Heroku.
44

5-
This application supports the [Getting Started with PHP on Heroku](https://devcenter.heroku.com/articles/getting-started-with-php) article - check it out.
5+
This application supports the tutorials for both the [Cedar and Fir generations](https://devcenter.heroku.com/articles/generations) of the Heroku platform. You can check them out here:
66

7-
## Deploying
7+
- [Getting Started on Heroku with PHP](https://devcenter.heroku.com/articles/getting-started-with-php)
8+
- [Getting Started on Heroku Fir with PHP](https://devcenter.heroku.com/articles/getting-started-with-php-fir)
9+
10+
## Deploying to Heroku
811

912
Using resources for this example app counts towards your usage. [Delete your app](https://devcenter.heroku.com/articles/heroku-cli-commands#heroku-apps-destroy) and [database](https://devcenter.heroku.com/articles/heroku-postgresql#removing-the-add-on) as soon as you are done experimenting to control costs.
1013

14+
### Deploy on Heroku [Cedar](https://devcenter.heroku.com/articles/generations#cedar)
15+
1116
By default, apps use Eco dynos if you are subscribed to Eco. Otherwise, it defaults to Basic dynos. The Eco dynos plan is shared across all Eco dynos in your account and is recommended if you plan on deploying many small apps to Heroku. Learn more about our low-cost plans [here](https://blog.heroku.com/new-low-cost-plans).
1217

1318
Eligible students can apply for platform credits through our new [Heroku for GitHub Students program](https://blog.heroku.com/github-student-developer-program).
1419

15-
Install the [Heroku Toolbelt](https://toolbelt.heroku.com/).
16-
17-
```sh
18-
$ git clone [email protected]:heroku/php-getting-started.git # or clone your own fork
20+
```text
21+
$ git clone https://github.com/heroku/php-getting-started
1922
$ cd php-getting-started
2023
$ heroku create
2124
$ git push heroku main
2225
$ heroku open
2326
```
2427

25-
or
28+
### Deploy on Heroku [Fir](https://devcenter.heroku.com/articles/generations#fir)
2629

27-
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
30+
By default, apps on [Fir](https://devcenter.heroku.com/articles/generations#fir) use 1X-Classic dynos. To create an app on [Fir](https://devcenter.heroku.com/articles/generations#fir) you'll need to
31+
[create a private space](https://devcenter.heroku.com/articles/working-with-private-spaces#create-a-private-space)
32+
first.
2833

34+
```text
35+
$ git clone https://github.com/heroku/php-getting-started
36+
$ cd php-getting-started
37+
$ heroku create --space <space-name>
38+
$ git push heroku main
39+
$ heroku ps:wait
40+
$ heroku open
41+
```
2942
## Documentation
3043

3144
For more information about using PHP on Heroku, see these Dev Center articles:

views/index.twig

+23-21
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,51 @@
88
</a>
99
<h1>Getting Started with PHP on Heroku</h1>
1010
<p>This is a sample PHP application deployed to Heroku. It's a reasonably simple app - but a good foundation for understanding how to get the most out of the Heroku platform.</p>
11-
<a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-php"><span class="glyphicon glyphicon-flash"></span> Getting Started with PHP</a>
11+
<a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-php"><span class="glyphicon glyphicon-flash"></span> Getting Started on Heroku with PHP</a>
12+
<a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-php-fir"><span class="glyphicon glyphicon-flash"></span> Getting Started on Heroku Fir with PHP</a>
1213
<a type="button" class="btn btn-lg btn-primary" href="https://github.com/heroku/php-getting-started"><span class="glyphicon glyphicon-download"></span> Source on GitHub</a>
1314
</div>
1415
</div>
1516
<div class="container">
16-
<div class="alert alert-info text-center" role="alert">
17-
To deploy your own copy, and learn the fundamentals of the Heroku platform, head over to the <a href="https://devcenter.heroku.com/articles/getting-started-with-php" class="alert-link">Getting Started with PHP on Heroku</a> tutorial.
17+
<div class="lead">
18+
To deploy your own copy, and learn the fundamentals of the Heroku platform, head over to either of the following tutorials:
19+
<ul>
20+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php" class="alert-link">Getting Started on Heroku with PHP</a></li>
21+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php-fir" class="alert-link">Getting Started on Heroku Fir with PHP</a></li>
22+
</ul>
1823
</div>
19-
<hr>
24+
<hr />
2025
<div class="row">
2126
<div class="col-md-6">
2227
<h3><span class="glyphicon glyphicon-info-sign"></span> How this sample app works</h3>
2328
<ul>
24-
<li>This app was deployed to Heroku, either using Git or by using <a href="https://github.com/heroku/php-getting-started">Heroku Button</a> on the repository.</li>
25-
26-
<li>When Heroku received the source code, it fetched all the dependencies in the <a href="https://github.com/heroku/php-getting-started/blob/main/composer.json">composer.json</a>, creating a deployable slug.</li>
27-
<li>The platform then spins up a dyno, a lightweight container that provides an isolated environment in which the slug can be mounted and executed.</li>
29+
<li>This app was deployed to Heroku using Git.</li>
30+
<li>When Heroku received the source code, it fetched all the dependencies in the <a href="https://github.com/heroku/php-getting-started/blob/main/composer.json">composer.json</a>, creating a deployable build artifact.</li>
31+
<li>The platform then spins up a dyno, a lightweight container that provides an isolated environment in which the build artifact can be mounted and executed.</li>
2832
<li>You can scale your app, manage it, and deploy over <a href="https://addons.heroku.com/">150 add-on services</a>, from the Dashboard or CLI.</li>
2933
</ul>
3034
</div>
3135
<div class="col-md-6">
3236
<h3><span class="glyphicon glyphicon-link"></span> Next Steps</h3>
3337
<ul>
34-
<li>If you are following the <a href="https://devcenter.heroku.com/articles/getting-started-with-php">Getting Started</a> guide, then please head back to the tutorial and follow the next steps!</li>
35-
<li>If you deployed this app by deploying the Heroku Button, then in a command line shell, run:</li>
36-
<ul>
37-
<li><code>git clone https://github.com/heroku/php-getting-started.git</code> - this will create a local copy of the source code for the app</li>
38-
<li><code>cd php-getting-started</code> - change directory into the local source code repository</li>
39-
<li><code>heroku git:remote -a &lt;your-app-name></code> - associate the Heroku app with the repository</li>
40-
<li>You'll now be set up to run the app locally, or <a href="https://devcenter.heroku.com/articles/getting-started-with-php#push-local-changes">deploy changes</a> to Heroku</li>
41-
</ul>
38+
<li>If you are following the <a href="https://devcenter.heroku.com/articles/getting-started-with-php">Getting Started on Heroku with PHP</a> or <a href="https://devcenter.heroku.com/articles/getting-started-with-php-fir">Getting Started on Heroku Fir with PHP</a> guide, then please head back to the tutorial and follow the next steps!</li>
4239
</ul>
4340
<h3><span class="glyphicon glyphicon-link"></span> Helpful Links</h3>
4441
<ul>
4542
<li><a href="https://www.heroku.com/home">Heroku</a></li>
4643
<li><a href="https://devcenter.heroku.com/">Heroku Dev Center</a></li>
47-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php">Getting Started with PHP on Heroku</a></li>
48-
<li><a href="https://devcenter.heroku.com/articles/deploying-php">Deploying PHP Apps on Heroku</a></li>
44+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php">Getting Started on Heroku with PHP</a></li>
45+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php-fir">Getting Started on Heroku Fir with PHP</a></li>
46+
<li><a href="https://devcenter.heroku.com/categories/php">PHP articles on the Heroku Dev Center</a></li>
4947
</ul>
5048
</div>
51-
</div> <!-- row -->
52-
<div class="alert alert-info text-center" role="alert">
53-
Please do work through the Getting Started guide, even if you do know how to build such an application. The guide covers the basics of working with Heroku, and will familiarize you with all the concepts you need in order to build and deploy your own apps.
49+
</div>
50+
<div class="row" style="margin-top:1em">
51+
<div class="col-md-12">
52+
<p class="alert alert-info" role="alert">
53+
Please do work through the Getting Started guide, even if you do know how to build such an application. The guide covers the basics of working with Heroku, and will familiarize you with all the concepts you need in order to build and deploy your own apps.
54+
</p>
55+
</div>
5456
</div>
5557
</div>
5658

views/nav.html

+27-10
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,38 @@
88
<a href="https://devcenter.heroku.com/articles/how-heroku-works"><span class="glyphicon glyphicon-user"></span> How Heroku Works</a>
99
</li>
1010
<li class="dropdown">
11-
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-info-sign"></span> Getting Started Guides <span class="caret"></span></a>
11+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-info-sign"></span> Getting Started Guides (Cedar) <span class="caret"></span></a>
1212
<ul class="dropdown-menu" role="menu">
13-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-ruby">Getting Started with Ruby on Heroku</a></li>
14-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs">Getting Started with Node on Heroku</a></li>
15-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php">Getting Started with PHP on Heroku</a></li>
16-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-python">Getting Started with Python on Heroku</a></li>
17-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java">Getting Started with Java on Heroku</a></li>
18-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started with Go on Heroku</a></li>
19-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-clojure">Getting Started with Clojure on Heroku</a></li>
20-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-scala">Getting Started with Scala on Heroku</a></li>
13+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-ruby">Getting Started on Heroku with Ruby</a></li>
14+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs">Getting Started on Heroku with Node.js</a></li>
15+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php">Getting Started on Heroku with PHP</a></li>
16+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-python">Getting Started on Heroku with Python</a></li>
17+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java">Getting Started on Heroku with Java</a></li>
18+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-clojure">Getting Started on Heroku with Clojure</a></li>
19+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-scala">Getting Started on Heroku with Scala</a></li>
20+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started on Heroku with Go</a></li>
21+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-dotnet">Getting Started on Heroku with .NET</a></li>
2122
<li class="divider"></li>
2223
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-heroku-and-connect-without-local-dev">Getting Started on Heroku with Heroku Connect</a></li>
23-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-jruby">Getting Started with Ruby on Heroku (Microsoft Windows)</a></li>
2424
</ul>
2525
</li>
26+
<li class="dropdown">
27+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-info-sign"></span> Getting Started Guides (Fir) <span class="caret"></span></a>
28+
<ul class="dropdown-menu" role="menu">
29+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-ruby-fir">Getting Started on Heroku Fir with Ruby</a></li>
30+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs-fir">Getting Started on Heroku Fir with Node.js</a></li>
31+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php-fir">Getting Started on Heroku Fir with PHP</a></li>
32+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-python-fir">Getting Started on Heroku Fir with Python</a></li>
33+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java-maven-fir">Getting Started on Heroku Fir with Java (Maven)</a></li>
34+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java-gradle-fir">Getting Started on Heroku Fir with Java (Gradle)</a></li>
35+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-clojure-fir">Getting Started on Heroku Fir with Clojure</a></li>
36+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-scala-fir">Getting Started on Heroku Fir with Scala</a></li>
37+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-go-fir">Getting Started on Heroku Fir with Go</a></li>
38+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-dotnet-fir">Getting Started on Heroku Fir with .NET</a></li>
39+
<li class="divider"></li>
40+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-heroku-and-connect-without-local-dev">Getting Started on Heroku with Heroku Connect</a></li>
41+
</ul>
42+
</li>
2643
</ul>
2744
<ul class="nav navbar-nav navbar-right">
2845
<li class="navbar-right">

0 commit comments

Comments
 (0)