Dynamically generated, customizable SVG that gives the appearance of typing and deleting text for use on your profile page, repositories, or website.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Jonah Lawrence 882bf35630
Merge pull request #44 from DenverCoder1/dependabot/composer/phpunit/phpunit-9.5.8
3 years ago
.github Create dependabot.yml 3 years ago
src set mode that user prefers 3 years ago
tests revert reformatting 3 years ago
.gitattributes Initial commit 3 years ago
.gitignore Get Base64 fonts from database or convert from Google font 3 years ago
CODE_OF_CONDUCT.md Added code of conduct 3 years ago
CONTRIBUTING.md Added initial readme and contributing info 3 years ago
LICENSE Initial commit 3 years ago
Procfile Set up app info 3 years ago
README.md added my profile to `example usage` 3 years ago
app.json Set up app info 3 years ago
composer.json Allow 8.0 3 years ago
composer.lock Bump phpunit/phpunit from 9.5.7 to 9.5.8 3 years ago

README.md

⌨️ Readme Typing SVG

📃 Table of contents

Quick setup

  1. Copy-paste the markdown below into your GitHub profile README
  2. Replace the value after ?lines= with your text. Separate lines of text with semicolons and use + or %20 for spaces.
  3. (Optional) Adjust the width parameter (see below) to fit the full width of your text.
[![Typing SVG](https://readme-typing-svg.herokuapp.com/?lines=First+line+of+text;Second+line+of+text)](https://git.io/typing-svg)

⚙ Demo site

Here you can easily customize your Typing SVG with a live preview.

https://readme-typing-svg.herokuapp.com/demo/

Demo Site

🚀 Example usage

Feel free to open a PR and add yours!

🔧 Options

Parameter Details Type Example
lines Text to display with lines separated by ; and + for spaces string First+line;Second+line;Third+line
center true to center text or false for left aligned (default: false) boolean true or false
vCenter true to center vertically or false(default) to align above the center boolean true or false
height Height of the output SVG in pixels (default: 50) integer Any positive number
width Width of the output SVG in pixels (default: 400) integer Any positive number
font Font family (default: monospace) string Any font from Google Fonts
size Font size in pixels (default: 20) integer Any positive number
color Color of the text (default: 36BCF7) string Hex code without # (eg. 00ff00)
multiline true to wrap lines or false to retype on one line (default: false) boolean true or false

📤 Deploying it on your own

If you can, it is preferable to host the files on your own server.

Doing this can lead to better uptime and more control over customization (you can modify the code for your usage).

You can deploy the PHP files on any website server with PHP installed or as a Heroku app.

Step-by-step instructions for deploying to Heroku

  1. Sign in to Heroku or create a new account at https://heroku.com
  2. Click the "Deploy to Heroku" button below

Deploy

  1. On the page that comes up, click "Deploy App" at the end of the form
  2. Once the app is deployed, click "Manage App" to go to the dashboard
  3. Scroll down to the Domains section in the settings to find the URL you will use in place of readme-typing-svg.herokuapp.com

🤗 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request if you have a way to improve this project.

Make sure your request is meaningful and you have tested the app locally before submitting a pull request.

Installing requirements

Requirements

Linux

sudo apt-get install php
sudo apt-get install php-curl
sudo apt-get install composer

Windows

Install PHP from XAMPP or php.net

▶ How to install and run PHP using XAMPP (Windows)

📥 Download Composer

Clone the repository

git clone https://github.com/DenverCoder1/readme-typing-svg.git
cd readme-typing-svg

Running the app locally

composer start

Open http://localhost:8000/ and add parameters to run the project locally.

Running the tests

Before you can run tests, PHPUnit must be installed. You can install it using Composer by running the following command.

composer install

Run the following command to run the PHPUnit test script which will verify that the tested functionality is still working.

composer test

🙋‍♂️ Support

💙 If you like this project, give it a and share it with friends!

Youtube Sponsor with Github

Buy me a coffee


Made with ❤️ and PHP

Powered by Heroku