An application to fetch, check, store and notify pastebin contents
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
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:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
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.
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.
- Vehikl
- Tighten Co.
- WebReinvent
- Kirschbaum Development Group
- 64 Robots
- Curotec
- Cyber-Duck
- DevSquad
- Jump24
- Redberry
- Active Logic
- byte5
- OP.GG
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
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.
The Laravel framework is open-sourced software licensed under the MIT license.