PHP code example of darkalchemy / slim-auth

1. Go to this page and download the library: Download darkalchemy/slim-auth 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/ */

    

darkalchemy / slim-auth example snippets

text
cd slim-auth
nano config/settings.php
text
sudo crontab -e

## add this to root crontab
* * * * * cd /path/to/bin folder/ && /usr/bin/php jobby.php 1>> /dev/null 2>&1
text
composer translate en_US
text
; TCP
; session.save_handler = redis
; session.save_path    = "tcp://127.0.0.1:6379?prefix=SlimAuth:&database=1"

; UNIX Socket
; session.save_handler = redis
; session.save_path = "unix:///dev/shm/redis.sock?prefix=SlimAuth:&database=1"
text
redis.session.locking_enabled=1
text
apc.enable_cli=1
apc.slam_defense=1