@@ -5,6 +5,15 @@ Support Package For Tamedevelopers
55## Documentation
66* [ Requirements] ( #requirements )
77* [ Installation] ( #installation )
8+ * [ All Paths] ( #all-paths )
9+ * [ Number to Words] ( #number-to-words )
10+ * [ Zip] ( #zip )
11+ * [ Time] ( #time )
12+ * [ Cookie] ( #cookie )
13+
14+
15+
16+
817* [ Asset] ( #Asset )
918 * [ Asset config] ( #asset-config )
1019 * [ Asset Cache] ( #asset-cache )
@@ -34,6 +43,26 @@ Prior to installing `support package` get the [Composer](https://getcomposer.org
3443composer require tamedevelopers/support
3544```
3645
46+ ## All Paths
47+
48+ | function name | Description |
49+ | ---------------------------| -----------------------------------------------|
50+ | base_path() | Get absolute base directory path. Accepts a param ` string ` if given, and append to path |
51+ | directory() | Same as ` base_path() ` |
52+ | public_path() | Root/public path. Accepts a param ` string ` if given, and append to path |
53+ | app_path() | Root/app path. Accepts a param ` string ` if given, and append to path |
54+ | config_path() | Root/config path. Accepts a param ` string ` if given, and append to path |
55+ | lang_path() | Root/lang path. Accepts a param ` string ` if given, and append to path |
56+ | domain() | Returns domain URI. Accepts a param ` string ` if given, and append to path |
57+
58+
59+ ## Number to Words
60+
61+ | iso(country iso3) | cents | text |
62+ | ---------------------------| -------| ------|
63+ | COUNTRY ISO 3 ` AFG \| NGA \| GBR \| USA ` | Get abs |
64+
65+
3766
3867## Asset
3968- Takes a param as ` string ` path to asset file
@@ -50,14 +79,14 @@ http://domain.com/assets/css/style.css
5079
5180- or -- ` Helpers Function `
5281```
53- asset ('css/style.css');
82+ tasset ('css/style.css');
5483```
5584
5685## Asset Config
5786- Takes two param as ` string `
58- - ` $ base_path` path base directory
59- - ` $ cache` Tells method to return ` cache ` of assets.
60- - You'll see a link representation as ` http://domain.com/[path_to_asset_file]?v=111111111 `
87+ - ` base_path ` path base directory
88+ - ` cache ` Tells method to return ` cache ` of assets.
89+
6190
6291```
6392use Tamedevelopers\Support\Asset;
@@ -74,7 +103,8 @@ config_asset('public');
74103```
75104
76105### Asset Cache
77- - By Default, ` $cache ` is set to ` true `
106+ - By Default, ` cache ` is set to ` true `
107+ - You'll see a link representation as ` http://domain.com/[path_to_asset_file]?v=111111111 `
78108
79109```
80110Asset::config('storage', false);
@@ -101,14 +131,14 @@ http://domain.com/storage/[asset_file]?v=111111111
101131```
102132use Tamedevelopers\Support\Env;
103133
104- Env::load('optional_custom_path_to_env_file ')
134+ Env::load('path_to_env_folder ')
105135```
106136
107137- or -- ` loadOrFail('optional_path') `
108138 - Just as the name says. It'll load the ` .env ` file or fail with status code of 404. An error logger will also be created inside ` storage/logs/orm.log `
109139
110140```
111- Env::loadOrFail('optional_custom_path_to_env_file ')
141+ Env::loadOrFail('path_to_env_folder ')
112142```
113143
114144### ENV Update
@@ -118,8 +148,8 @@ Env::loadOrFail('optional_custom_path_to_env_file')
118148| ---------------| -------------------|
119149| key | ENV key |
120150| value | ENV value |
121- | allow_quote | ` true ` \| ` false ` - Default is true (Allow quotes within value) |
122- | allow_space | ` true ` \| ` false ` - Default is false (Allow space between key and value)|
151+ | allow_quote | ` true \| false ` - Default is true (Allow quotes within value) |
152+ | allow_space | ` true \| false ` - Default is false (Allow space between key and value) |
123153
124154```
125155use Tamedevelopers\Support\Env;
@@ -233,7 +263,7 @@ autoload_register(['folder', 'folder2]);
233263| env() | env method ` To get environment variable ` |
234264| env_update() | Same as ` Env::updateENV ` method |
235265| server() | Return instance of ` (new Server) ` class |
236- | asset() | Return Absolute path of asset. Same as ` Asset::asset() ` |
266+ | tasset() | Return Absolute path of asset. Same as ` Asset::asset() ` |
237267| config_asset() | Same as ` Asset::config() ` . Configure Asset root directory |
238268| base_path() | Get absolute base directory path. It accepts a param as ` string ` if given, will be appended to the path |
239269| directory() | Same as ` base_path() ` just naming difference |
@@ -242,6 +272,7 @@ autoload_register(['folder', 'folder2]);
242272| to_object() | ` object ` Convert value to object |
243273| to_json() | ` string ` Convert value to json |
244274
275+
245276## Error Dump
246277
247278| function | Description |
0 commit comments