PHP code example of nathanwooten / al

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

    

nathanwooten / al example snippets








nathanwooten\al\Al::path_( 'TOP_DIR', [ dirname( __FILE__ ) ] );
nathanwooten\al\Al::path_( 'TOP_FILE', [ 'TOP_DIR', 'top.php' ] );

$return = nathanwooten\al\Al::file_( 'TOP_FILE' );
...



use nathanwooten\al\Al;

//... define public ...
//ie:
// PathFind.php is in all dirs
$pathFind = ...

Al::path_( 'PUBLIC_HTML', 'PUBLIC_HTML', $public );
Al::path_( 'TOP_FILE', 'PUBLIC_HTML', 'top.php' );

$containerOrApplication = Al::file_( 'TOP_FILE' );
return $containerOrApplication;