Skip to content
Snippets Groups Projects
PlatformSeeder.php 14.8 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    /**
     * Class PlatformsSeeder
    
     * Inserts values in platforms table in database
     *
    
     * @copyright  2020 Podlibre
     * @license    https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
     * @link       https://castopod.org/
     */
    
    namespace App\Database\Seeds;
    
    use CodeIgniter\Database\Seeder;
    
    class PlatformSeeder extends Seeder
    {
        public function run()
        {
    
                    'slug' => 'amazon',
                    'type' => 'podcasting',
                    'label' => 'Amazon Music and Audible',
                    'home_url' => 'https://music.amazon.com/podcasts',
                    'submit_url' => 'http://amazon.com/podcasters',
                ],
                [
                    'slug' => 'apple',
                    'type' => 'podcasting',
    
                    'label' => 'Apple Podcasts',
    
                    'home_url' => 'https://www.apple.com/itunes/podcasts/',
                    'submit_url' =>
                        'https://podcastsconnect.apple.com/my-podcasts/new-feed',
                ],
                [
    
                    'slug' => 'blubrry',
                    'type' => 'podcasting',
    
                    'label' => 'Blubrry',
    
                    'home_url' => 'https://www.blubrry.com/',
                    'submit_url' => 'https://www.blubrry.com/addpodcast.php',
                ],
                [
    
                    'slug' => 'castbox',
                    'type' => 'podcasting',
    
                    'label' => 'Castbox',
    
                    'home_url' => 'https://castbox.fm/',
                    'submit_url' =>
                        'https://helpcenter.castbox.fm/portal/kb/articles/submit-my-podcast',
                ],
    
                [
                    'slug' => 'castopod',
                    'type' => 'podcasting',
                    'label' => 'Castopod',
                    'home_url' => 'https://castopod.org/',
                    'submit_url' => 'https://castopod.org/instances',
                ],
    
                    'slug' => 'castro',
                    'type' => 'podcasting',
    
                    'label' => 'Castro',
    
                    'home_url' => 'http://castro.fm/',
    
                    'submit_url' =>
                        'https://castro.fm/support/link-to-your-podcast-in-castro',
    
                    'slug' => 'chartable',
                    'type' => 'podcasting',
                    'label' => 'Chartable',
                    'home_url' => 'https://chartable.com/',
                    'submit_url' => 'https://chartable.com/podcasts/submit',
                ],
                [
                    'slug' => 'deezer',
                    'type' => 'podcasting',
    
                    'label' => 'Deezer',
    
                    'home_url' => 'https://www.deezer.com/',
                    'submit_url' => 'https://podcasters.deezer.com/submission',
                ],
                [
    
                    'slug' => 'fyyd',
                    'type' => 'podcasting',
                    'label' => 'fyyd',
                    'home_url' => 'https://fyyd.de/',
                    'submit_url' => 'https://fyyd.de/add-feed',
                ],
    
                [
                    'slug' => 'google',
                    'type' => 'podcasting',
    
                    'label' => 'Google Podcasts',
    
                    'home_url' => 'https://podcasts.google.com/about',
                    'submit_url' =>
                        'https://search.google.com/search-console/about',
                ],
                [
    
                    'slug' => 'ivoox',
                    'type' => 'podcasting',
    
                    'label' => 'Ivoox',
    
                    'home_url' => 'https://www.ivoox.com/',
    
                    'submit_url' => 'http://www.ivoox.com/upload-podcast_u.html',
    
                    'slug' => 'listennotes',
                    'type' => 'podcasting',
    
                    'label' => 'ListenNotes',
    
                    'home_url' => 'https://www.listennotes.com/',
                    'submit_url' => 'https://www.listennotes.com/submit/',
                ],
                [
    
                    'slug' => 'overcast',
                    'type' => 'podcasting',
    
                    'label' => 'Overcast',
    
                    'home_url' => 'https://overcast.fm/',
                    'submit_url' => 'https://overcast.fm/podcasterinfo',
                ],
                [
    
                    'slug' => 'playerfm',
                    'type' => 'podcasting',
    
                    'label' => 'Player.Fm',
    
                    'home_url' => 'https://player.fm/',
                    'submit_url' => 'https://player.fm/importer/feed',
                ],
                [
    
                    'slug' => 'pocketcasts',
                    'type' => 'podcasting',
    
                    'label' => 'Pocketcasts',
    
                    'home_url' => 'https://www.pocketcasts.com/',
                    'submit_url' => 'https://www.pocketcasts.com/submit/',
                ],
                [
    
                    'slug' => 'podbean',
                    'type' => 'podcasting',
    
                    'label' => 'Podbean',
    
                    'home_url' => 'https://www.podbean.com/',
                    'submit_url' => 'https://www.podbean.com/site/submitPodcast',
                ],
    
                    'slug' => 'podcastaddict',
                    'type' => 'podcasting',
    
                    'label' => 'Podcast Addict',
    
                    'home_url' => 'https://podcastaddict.com/',
                    'submit_url' => 'https://podcastaddict.com/submit',
    
                    'slug' => 'podcastindex',
                    'type' => 'podcasting',
    
                    'label' => 'Podcast Index',
                    'home_url' => 'https://podcastindex.org/',
                    'submit_url' => 'https://api.podcastindex.org/signup',
                ],
    
                    'slug' => 'podchaser',
                    'type' => 'podcasting',
    
                    'label' => 'Podchaser',
    
                    'home_url' => 'https://www.podchaser.com/',
                    'submit_url' => 'https://www.podchaser.com/creators/edit',
                ],
                [
    
                    'slug' => 'podcloud',
                    'type' => 'podcasting',
                    'label' => 'podCloud',
                    'home_url' => 'https://podcloud.fr/',
                    'submit_url' => 'https://podcloud.fr/studio/podcasts/new',
                ],
                [
                    'slug' => 'podinstall',
                    'type' => 'podcasting',
                    'label' => 'Podinstall',
                    'home_url' => 'https://www.podinstall.com/',
                    'submit_url' => 'https://www.podinstall.com/claim.html',
                ],
                [
                    'slug' => 'podtail',
                    'type' => 'podcasting',
    
                    'label' => 'Podtail',
    
                    'home_url' => 'https://podtail.com/',
                    'submit_url' => 'https://podtail.com/about/faq/',
                ],
                [
    
                    'slug' => 'podverse',
                    'type' => 'podcasting',
                    'label' => 'Podverse',
                    'home_url' => 'https://podverse.fm/',
                    'submit_url' =>
                        'https://docs.google.com/forms/d/e/1FAIpQLSdewKP-YrE8zGjDPrkmoJEwCxPl_gizEkmzAlTYsiWAuAk1Ng/viewform',
                ],
                [
                    'slug' => 'radiopublic',
                    'type' => 'podcasting',
                    'label' => 'RadioPublic',
    
                    'home_url' => 'https://radiopublic.com/',
                    'submit_url' => 'https://podcasters.radiopublic.com/signup',
                ],
                [
    
                    'slug' => 'spotify',
                    'type' => 'podcasting',
    
                    'label' => 'Spotify',
    
                    'home_url' => 'https://www.spotify.com/',
                    'submit_url' => 'https://podcasters.spotify.com/submit',
                ],
                [
    
                    'slug' => 'spreaker',
                    'type' => 'podcasting',
    
                    'label' => 'Spreaker',
    
                    'home_url' => 'https://www.spreaker.com/',
                    'submit_url' => 'https://www.spreaker.com/cms/shows/rss-import',
                ],
                [
    
                    'slug' => 'stitcher',
                    'type' => 'podcasting',
    
                    'label' => 'Stitcher',
    
                    'home_url' => 'https://www.stitcher.com/',
    
                    'submit_url' => 'https://partners.stitcher.com/join',
    
                    'slug' => 'tunein',
                    'type' => 'podcasting',
    
                    'label' => 'TuneIn',
    
                    'home_url' => 'https://tunein.com/',
                    'submit_url' =>
                        'https://help.tunein.com/contact/add-podcast-S19TR3Sdf',
                ],
    
    
                [
                    'slug' => 'paypal',
                    'type' => 'funding',
                    'label' => 'Paypal',
                    'home_url' => 'https://www.paypal.com/',
                    'submit_url' => 'https://www.paypal.com/paypalme/my/grab',
                ],
    
    
                [
                    'slug' => 'gofundme',
                    'type' => 'funding',
                    'label' => 'GoFundMe',
                    'home_url' => 'https://www.gofundme.com/',
                    'submit_url' => 'https://www.gofundme.com/sign-up',
                ],
                [
                    'slug' => 'indiegogo',
                    'type' => 'funding',
                    'label' => 'Indiegogo',
                    'home_url' => 'https://www.indiegogo.com/',
                    'submit_url' => 'https://www.indiegogo.com/start-a-campaign#/',
                ],
                [
                    'slug' => 'kickstarter',
                    'type' => 'funding',
                    'label' => 'Kickstarter',
                    'home_url' => 'https://www.kickstarter.com/',
                    'submit_url' => 'https://www.kickstarter.com/learn',
                ],
                [
                    'slug' => 'kisskissbankbank',
                    'type' => 'funding',
                    'label' => 'KissKissBankBank',
                    'home_url' => 'https://www.kisskissbankbank.com/',
                    'submit_url' =>
                        'https://www.kisskissbankbank.com/en/financer-mon-projet',
                ],
    
                [
                    'slug' => 'liberapay',
                    'type' => 'funding',
                    'label' => 'Liberapay',
                    'home_url' => 'https://liberapay.com/',
                    'submit_url' => 'https://liberapay.com/sign-up',
                ],
                [
                    'slug' => 'patreon',
                    'type' => 'funding',
                    'label' => 'Patreon',
                    'home_url' => 'https://www.patreon.com/',
                    'submit_url' => 'https://www.patreon.com/create',
                ],
                [
                    'slug' => 'tipeee',
                    'type' => 'funding',
                    'label' => 'Tipeee',
                    'home_url' => 'https://tipeee.com/',
                    'submit_url' => 'https://tipeee.com/register/',
                ],
    
                [
                    'slug' => 'ulule',
                    'type' => 'funding',
                    'label' => 'Ulule',
                    'home_url' => 'https://www.ulule.com/',
                    'submit_url' => 'https://www.ulule.com/projects/create/#/',
                ],
    
    
                [
                    'slug' => 'discord',
                    'type' => 'social',
                    'label' => 'Discord',
                    'home_url' => 'https://discord.com/',
                    'submit_url' => 'https://discord.com/register',
                ],
                [
                    'slug' => 'facebook',
                    'type' => 'social',
                    'label' => 'Facebook',
                    'home_url' => 'https://www.facebook.com/',
                    'submit_url' =>
                        'https://www.facebook.com/pages/creation/?ref_type=comet_home',
                ],
    
                [
                    'slug' => 'funkwhale',
                    'type' => 'social',
                    'label' => 'Funkwhale',
                    'home_url' => 'https://funkwhale.audio/',
                    'submit_url' => 'https://network.funkwhale.audio/dashboards/',
                ],
    
                [
                    'slug' => 'instagram',
                    'type' => 'social',
                    'label' => 'Instagram',
                    'home_url' => 'https://www.instagram.com/',
                    'submit_url' =>
                        'https://www.instagram.com/accounts/emailsignup/',
                ],
                [
                    'slug' => 'linkedin',
                    'type' => 'social',
                    'label' => 'LinkedIn',
                    'home_url' => 'https://www.linkedin.com/',
                    'submit_url' => 'https://www.linkedin.com/company/setup/new/',
                ],
                [
                    'slug' => 'mastodon',
                    'type' => 'social',
                    'label' => 'Mastodon',
                    'home_url' => 'https://joinmastodon.org/',
                    'submit_url' => 'https://joinmastodon.org/communities',
                ],
    
                [
                    'slug' => 'mobilizon',
                    'type' => 'social',
                    'label' => 'Mobilizon',
                    'home_url' => 'https://joinmobilizon.org/',
                    'submit_url' => 'https://instances.joinmobilizon.org/instances',
                ],
                [
                    'slug' => 'peertube',
                    'type' => 'social',
                    'label' => 'PeerTube',
                    'home_url' => 'https://joinpeertube.org/',
                    'submit_url' => 'https://joinpeertube.org/instances',
                ],
    
                [
                    'slug' => 'pixelfed',
                    'type' => 'social',
                    'label' => 'Pixelfed',
                    'home_url' => 'https://pixelfed.org/',
                    'submit_url' => 'https://beta.joinpixelfed.org/',
                ],
    
                [
                    'slug' => 'plume',
                    'type' => 'social',
                    'label' => 'Plume',
                    'home_url' => 'https://joinplu.me/',
                    'submit_url' => 'https://joinplu.me/#instances',
                ],
    
                [
                    'slug' => 'slack',
                    'type' => 'social',
                    'label' => 'Slack',
                    'home_url' => 'https://slack.com/',
                    'submit_url' => 'https://slack.com/get-started#/create',
                ],
                [
                    'slug' => 'twitch',
                    'type' => 'social',
                    'label' => 'Twitch',
                    'home_url' => 'https://www.twitch.tv/',
                    'submit_url' => 'https://www.twitch.tv/signup',
                ],
                [
                    'slug' => 'twitter',
                    'type' => 'social',
                    'label' => 'Twitter',
                    'home_url' => 'https://twitter.com/',
                    'submit_url' => 'https://twitter.com/i/flow/signup',
                ],
    
                [
                    'slug' => 'writefreely',
                    'type' => 'social',
                    'label' => 'WriteFreely',
                    'home_url' => 'https://writefreely.org/',
                    'submit_url' => 'https://writefreely.org/instances',
                ],
    
                [
                    'slug' => 'youtube',
                    'type' => 'social',
                    'label' => 'Youtube',
                    'home_url' => 'https://www.youtube.com/',
                    'submit_url' => 'https://creatoracademy.youtube.com/page/home',
                ],
    
            $this->db
                ->table('platforms')
                ->ignore(true)
                ->insertBatch($data);