11<?php
22
33use Tamedevelopers \Support \Env ;
4- use Tamedevelopers \Support \Hash ;
4+ use Tamedevelopers \Support \PDF ;
55use Tamedevelopers \Support \Tame ;
6- use Tamedevelopers \Support \Server ;
76use Tamedevelopers \Support \Slugify ;
8- use Tamedevelopers \Support \Translator ;
9- use Tamedevelopers \Support \Capsule \Forge ;
107
118require_once __DIR__ . '/../vendor/autoload.php ' ;
129
1310
14- // $Json = '{"name":"Peterson","age":20,"food":["Rice","Garri","Fish","Calories"]}';
11+ $ Json = '{"name":"Peterson","age":20,"food":["Rice","Garri","Fish","Calories"]} ' ;
1512
1613// Env::loadOrFail();
1714
18- // server()->toArray($Json);
19- // to_object($Json);
20-
2115
2216// PDF()->create([
2317// 'content' => "<h1>Title First</h1> <br> Hello There i Love You!",
3832// Tame::include('normal.php');
3933// Tame()->include('normal.php');
4034
41- // bcrypt('testPassword')
42- // Hash::make('testPassword')
43- // $2y$10$Frh7yG3.qnGdQ9Hd8OK/y.aBWXFLiFD3IWqUjIWWodUhzIVF3DpT6 --- testPassword
44-
45- // Hash::check('testPassword', '$2y$10$7a90e2de3f5383819f812u2GwVuprKTsAW7IfeskSkn6/Ky9vSQ.2')
46-
4735// Slugify::slug('Hottest Product 2023, For Health Benefits');
4836
4937// Server::createTemplateFile([
6149// ], 'Tests/en.php');
6250
6351
64- /**
65- * Custom Language Handler
66- *
67- * @param string $key
68- * @return mixed
69- */
70- function __lang ($ key ){
71- return Translator::trans (
72- "message. {$ key }" ,
73- Translator::getLocale ()
74- );
75- }
76-
77- /**
78- * Custom Configuration Handler
79- *
80- * @param mixed $key
81- * @param mixed $default
82- * @return mixed
83- */
84- function configuration ($ key , $ default = null ){
85-
86- // since the config only takes the filename follow by dot(.) and keyname
87- // then we can manually include additional folder-name followed by / to indicate that it's a folder
88- // then message.key_name
89- // To make this Laravel kind of language, we can add the default value to be returned as the key
90-
91- return config ("configuration/ {$ key }" , $ default , 'tests ' );
92- }
93-
94-
95- // Default locale is `en`
96- // Translator::setLocale('cn');
97- // Translator::getLocale();
98-
9952dd (
100- // config('log', [], 'storage'),
101- __ ('message.name ' ),
102- __lang ('confirm_password ' ),
103- configuration ('banners ' ),
53+ Tame::platformIcon ('windows ' ),
54+
55+ to_object ($ Json ),
56+
57+ // server()->toArray($Json),
10458);
10559
106- echo "hi " ;
0 commit comments