• This repository has been archived on 12/May/2023
  • Stars
    star
    173
  • Rank 219,497 (Top 5 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 3 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This project is discontinued due to changes in the Twitter API access for users. Check erikaheidi/gdaisy for the base functionality of generating image banners based on JSON templates.

Dynacover

Dynacover is a PHP GD + TwitterOAuth CLI app to dynamically generate Twitter header images and upload them via the API. This enables you to build cool little tricks, like showing your latest followers or GitHub sponsors, your latest content created, a qrcode to something, a progress bar for a goal, and whatever you can think of.

Installation

You can run Dynacover in three different ways:

  • as a GitHub action: the easiest way to run Dynacover is by setting it up in a public repository with GitHub Actions, using repository secrets for credentials. Follow this step-by-step guide to set this up - no coding required.
  • with Docker: you can use the public erikaheidi/dynacover Docker image to run Dynacover with a single command, no PHP required. Follow this guide to set this up.
    • to further customize your cover, you can clone the dynacover repo to customize banner resources (JSON template and header images, both located at app/Resources), then build a local copy of the Dynacover Docker image to use your custom changes.
  • with a PHP CLI environment: this will require php-cli 8.1+, Composer, and a few extensions: php-gd, php-mbstring, php-curl, and php-json. Follow this guide to set it up.

Obtaining Required Tokens

To upload your header images, you'll need to register an application within the Twitter Developers Portal and obtain 4 tokens:

  • Consumer / App Token
  • Consumer / App Secret
  • User / Access Token
  • User / Access Token Secret

Additionally, you can set up a Personal GitHub API key to fetch your sponsors, in case you are enrolled in the GitHub Sponsors program. In this case, you should use the included cover_sponsors.json template. This is optional.

Available Templates

cover_basic.json

The default template shows latest 5 Twitter followers.

cover basic

cover_colorful.json

Similar to the basic cover, but with a more colorful background. Shows latest 5 Twitter followers.

cover colorful

cover_neon.json

This template shows your latest 5 Twitter followers in smaller size, in a blue-neon style header.

cover neon

cover_sponsors.json

This template uses the Github image source to obtain sponsors and include them in the banner. Make sure you have set up your GH token on the credentials.php file.

cover with github sponsors

Recent Interactions Banner

The "interactions banner" is generated based on your recent interactions and can be limited to only include mutuals (people that follows you and you follow them back).

php dynacover generate interactions

recent interactions twitter banner

For mutuals only, include the --mutuals flag:

php dynacover generate interactions --mutuals

Please notice that the "mutuals" version may have a limited set of results after filtering your latest interactions (~200 mentions).

More Repositories

1

placephant

elephpant placeholder
PHP
98
star
2

gdaisy

php-gd based image templates
PHP
75
star
3

vagrantcookbook

Vagrant Cookbook - Recipes
Ruby
61
star
4

hacktoberfest-verify

Hacktoberfest User Verification Script
CSS
47
star
5

cfmgmt

Configuration Management Guide
Ruby
39
star
6

rafflebird

Twitter raffles in the command line, with PHP and minicli
PHP
33
star
7

fabgit

fabgit - make your git fabulous
PHP
30
star
8

dolphin

This project was moved to do-community/dolphin
PHP
30
star
9

autodocs

Automated Documentation
PHP
19
star
10

streamwidgets

Browser-based Twitch integrations for Live Streaming with OBS on Linux.
PHP
17
star
11

streamaru

Streaming Tools
PHP
16
star
12

dynacover-actions

GitHub Actions to run Dynacover
Dockerfile
16
star
13

silex-L10nex

Silex with Localization - L10n - an example app
PHP
16
star
14

sponsoross

This repository has moved to erikaheidi/sponsoropensource
CSS
13
star
15

sponsorshub

SponsorsHub - a Laravel application
PHP
12
star
16

onlinux

On Linux Systems
CSS
11
star
17

yamldocs

YAML docs - markdown generator
PHP
10
star
18

wolfi-php-frameworks-demo

A demo Docker setup for PHP framworks based on Wolfi.
PHP
10
star
19

sponsoropensource

A list of underrepresented open source developers that can be sponsored through the GitHub Sponsors program
CSS
9
star
20

php8-sandbox

Docker-based PHP 8 sandbox
Dockerfile
8
star
21

doac-ansible

DevOps & Chill - Ansible content
7
star
22

wolfi-php-demo

Wolfi web server demo
PHP
6
star
23

erikaheidi

My things
6
star
24

importDevTo

GitHub Action to import markdown posts from a Dev.to user
PHP
6
star
25

minileaf

Nanoleaf CLI controller written in PHP
PHP
6
star
26

stamper

A small wraper around PHP-GD to stamp images and create collages with multiple layers
6
star
27

nomad-vagrant

Examples from my talk at NomadPHP about Vagrant
Ruby
5
star
28

greatzoltar

@greatzoltar - ask him anything
PHP
4
star
29

github-actions

Some GitHub Actions
3
star
30

php-full-wolfi-demo

Demo of PHP "full build" image with melange and apko
3
star
31

captioner

CLI Live Captioner in PHP using Minicli
PHP
2
star
32

gifster

A Ruby toy project with ~gifs~
HTML
2
star
33

onlinux-systems

Official repository of onlinux.systems
CSS
2
star
34

eheidi.dev

My Personal Website
CSS
2
star
35

yamldocs-action

GitHub Action to autogenerate docs using yamldocs
1
star
36

autodocs-demo

A demo application implementing Autodocs
PHP
1
star