Skip to content

A Laravel project to fetch, check, store and notify pastebins contents

Notifications You must be signed in to change notification settings

serjmac/pastebins_fetcher

Repository files navigation

Pastebins fetcher

An application to fetch, check, store and notify pastebin contents

Set up before first run:

Duplicate .env.example file as .env and set the appropiate environment variables :

  • APP_TIMEZONE = valid system timezones like UTC, "Europe/Madrid"...
  • MAIL_XXX = email provider parameters. ie for Gmail, first set a application password in your account settings in order to use their smtp, and complete rest of parameters.
  • PASTEBIN_URLS = comma separated full urls ie https://pastebin.com/raw/foo,https://pastebin.com/raw/bar
  • REGEX_PATTERN = REGULAR EXPRESSION to match pattern in pastebin contents

Run the project on a host with PHP and Composer

  • Accepted PHP versions for Laravel 11: ^8.2 | ^8.3 | ^8.4

  • Enable extensions in php.ini:

    • extension=curl
    • extension=fileinfo
    • extension=gd
    • extension=mbstring
    • extension=openssl
    • extension=pdo_sqlite
    • extension=zip
  • Rename or duplicate database/database.sqlite.empty to database/database.sqlite

  • Execute 'composer install' in project root to install vendor dependencies

  • Execute 'php artisan migrate' to seed the database/database.sqlite file with the required tables.

  • Execute 'php artisan key:generate' to generate the APP_KEY value

  • Create a task like Cron or Windows scheduled task to run the command 'php artisan fetch:pastebins' which will launch the process

  • If troubleshooting, check console errors or table pastebin_errors with a sqlite manager like DB Browser for SQLite

  • If want to access web routes, serve the project in a web server or host live dev server with 'php artisan serve' command. See routes in routes/web.php file. This feature is minimal in this initial project stage

This project was built in Laravel Framework

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

A Laravel project to fetch, check, store and notify pastebins contents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages