PHP code example of jobapis / jobs-to-mail

1. Go to this page and download the library: Download jobapis/jobs-to-mail library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jobapis / jobs-to-mail example snippets

conf
server {
    listen       80;
    server_name  yourdomain.com;
    
    root   /home/user/jobs-to-mail/public;
    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
    
    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        

php artisan jobs:email

php artisan jobs:email [email protected]

php artisan db:seed

php artisan db:seed --class=TestingDatabaseSeeder

php artisan db:seed --class=DatabaseTruncater