Skip to content
No description, website, or topics provided.
PHP CSS HTML ApacheConf
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
bin
src
tests/AppBundle/Controller
tutorial
var
web
.gitignore
README.md
composer.json
composer.lock
phpunit.xml.dist

README.md

Stripe: Killer Payment Processing + ??? = Profit

This repository holds the script, code and secrets to getting rich quick (hint: lottery) for the KnpUniversity Stripe Tutorial.

Setup

1) Install the vendor libs with Composer!

Download Composer either globally or right into this directory, and then (from this directory), run:

php composer.phar install

This will interactively ask you for some settings - like database_host. Fill those in.

This will also ask you about some Stripe keys. If you haven't already, signup for a new Stripe account. You can find the secret and public/publishable keys in your "Account Settings" area.

If you make a mistake - just modify app/config/parameters.yml afterwards!

If you get an error about "Unknown Database" - it's cool! Ignore it for now :)

2) Bootstrap the database

To get your database up and running, execute the following commands:

php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
php bin/console h:d:f:l

If you get any errors, check your database settings in app/config/parameters.yml.

3) Start your web server

We recommend using the built-in PHP web server. To start it, run:

php bin/console server:run

Then, load the site at:

http://localhost:8000
You can’t perform that action at this time.