Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 1.69 KB

README.md

File metadata and controls

56 lines (33 loc) · 1.69 KB

Deepgram PHP Starter

This sample demonstrates interacting with the Deepgram API from a PHP server. It uses the Deepgram API to handle API calls, and has a javascript client built from web components.

Sign-up to Deepgram

Before you start, it's essential to generate a Deepgram API key to use in this project. Sign-up now for Deepgram.

Quickstart

Manual

Follow these steps to get started with this starter application.

Clone the repository

Go to GitHub and clone the repository.

Install php

If you haven't already, you need to install PHP on your system. You can download and install it by following the instructions on the PHP website: https://www.php.net/manual/en/install.php

Install composer

If you haven't already, you need to install Composer on your system. You can download and install it by following the instructions on the Composer website: https://getcomposer.org/download/

If you use homebrew, you can install composer with the following command:

brew install composer

Install dependencies

Use composer to install the project dependencies in the root directory.

composer install

Edit the config file

Copy the text from .env-sample and create a new file called .env. Paste in the code and enter your API key you generated in the Deepgram console.

port=8080
deepgram_api_key=api_key

Run the application

Once running, you can access the application in your browser.

php -S localhost:8080 -d post_max_size=200M -d upload_max_filesize=200M