{"id":24176625,"url":"https://github.com/nicxlau/hunter-php-javascript-obfuscator","last_synced_at":"2025-06-14T23:32:10.609Z","repository":{"id":43140510,"uuid":"205742612","full_name":"nicxlau/hunter-php-javascript-obfuscator","owner":"nicxlau","description":":lock: Protect your JavaScript source code with the simplest and fastest way.","archived":false,"fork":false,"pushed_at":"2022-08-08T03:02:04.000Z","size":15,"stargazers_count":71,"open_issues_count":4,"forks_count":37,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-25T02:54:01.677Z","etag":null,"topics":["hacktoberfest","hunter-php-obfuscator","obfuscator","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicxlau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-01T23:08:40.000Z","updated_at":"2024-07-24T22:00:51.000Z","dependencies_parsed_at":"2022-08-12T10:20:50.957Z","dependency_job_id":null,"html_url":"https://github.com/nicxlau/hunter-php-javascript-obfuscator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicxlau%2Fhunter-php-javascript-obfuscator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicxlau%2Fhunter-php-javascript-obfuscator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicxlau%2Fhunter-php-javascript-obfuscator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicxlau%2Fhunter-php-javascript-obfuscator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicxlau","download_url":"https://codeload.github.com/nicxlau/hunter-php-javascript-obfuscator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233686187,"owners_count":18714104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","hunter-php-obfuscator","obfuscator","php"],"created_at":"2025-01-13T03:17:19.613Z","updated_at":"2025-01-13T03:17:20.103Z","avatar_url":"https://github.com/nicxlau.png","language":"PHP","readme":"# Hunter - PHP Javascript Obfuscator\n\u003e :lock: Protect your JavaScript source code with the simplest and fastest way.\n\n### :squirrel: [Investigate the live demo](https://damidev.000webhostapp.com/)\n\n## Requirement\n```php\nrequire_once 'HunterObfuscator.php'; //Include the class\n```\n\n## Simple usage to obfuscate JS code:\n```php\n$jsCode = \"alert('Hello world!');\"; //Simple JS code\n$hunter = new HunterObfuscator($jsCode); //Initialize with JS code in parameter\n$obsfucated = $hunter-\u003eObfuscate(); //Do obfuscate and get the obfuscated code\necho \"\u003cscript\u003e\" . $obsfucated . \"\u003c/script\u003e\";\n```\n\n## Simple usage to obfuscate HTML code:\n\n```php\n$htmlCode = \"\u003ch1\u003eTitle\u003c/h1\u003e\u003cp\u003eHello world!\u003c/p\u003e\"; //Simple HTML code\n$hunter = new HunterObfuscator($htmlCode, true); //Initialize with HTML code in first parameter and set second one to TRUE\n$obsfucated = $hunter-\u003eObfuscate(); //Do obfuscate and get the obfuscated code\necho \"\u003cscript\u003e\" . $obsfucated . \"\u003c/script\u003e\";\n```\n\n\u003e **Note**: If your HTML code contains any JS codes please remove any comments in that js code to prevent issues.\n\n## Set expiration time:\n\n```php\n$hunter-\u003esetExpiration('+10 day'); //Expires after 10 days\n$hunter-\u003esetExpiration('Next Friday'); //Expires next Friday\n$hunter-\u003esetExpiration('tomorrow'); //Expires tomorrow\n$hunter-\u003esetExpiration('+5 hours'); //Expires after 5 hours\n$hunter-\u003esetExpiration('+1 week 3 days 7 hours 5 seconds'); //Expires after +1 week 3 days 7 hours and 5 seconds\n```\n\n## Domain name lock:\n\n```php\n$hunter-\u003eaddDomainName('google.com'); //the generated code will work only on google.com\n```\n\n\u003e **Note**: you can add multiple domains by adding one by one.\n\n#### See the included demo (/original/index.php) for more.\n\n#### Happy Coding :)\n\n\n## CHANGE LOG (YYYY/MM/DD)\n\n* v1.2 - **2018-01-11**\n  * fixed utf8 characters\n\n* v1.1 - **2017-11-20**\n  * Some improvments\n  * Added expiration time\n  * Added domain name lock\n  * Added ability to obfuscate HTML code\n  * New demo script\n\n* v1.0 - **2017-07-27**\n  * Initial release\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicxlau%2Fhunter-php-javascript-obfuscator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicxlau%2Fhunter-php-javascript-obfuscator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicxlau%2Fhunter-php-javascript-obfuscator/lists"}