{"id":20703608,"url":"https://github.com/emalherbi-zz/grunt-php-shield","last_synced_at":"2025-10-16T21:23:04.548Z","repository":{"id":21542599,"uuid":"24862155","full_name":"emalherbi-zz/grunt-php-shield","owner":"emalherbi-zz","description":"Build automatic PHP files with phpShield or Encrypt your files in Base 64!","archived":false,"fork":false,"pushed_at":"2018-05-28T18:30:50.000Z","size":101,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T00:32:08.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://emalherbi.github.io/grunt-php-shield/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emalherbi-zz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-06T19:51:04.000Z","updated_at":"2019-02-28T11:40:52.000Z","dependencies_parsed_at":"2022-08-21T17:21:17.451Z","dependency_job_id":null,"html_url":"https://github.com/emalherbi-zz/grunt-php-shield","commit_stats":null,"previous_names":["emalherbi/grunt-php-shield"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emalherbi-zz/grunt-php-shield","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emalherbi-zz%2Fgrunt-php-shield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emalherbi-zz%2Fgrunt-php-shield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emalherbi-zz%2Fgrunt-php-shield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emalherbi-zz%2Fgrunt-php-shield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emalherbi-zz","download_url":"https://codeload.github.com/emalherbi-zz/grunt-php-shield/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emalherbi-zz%2Fgrunt-php-shield/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745597,"owners_count":24813509,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-17T01:08:46.050Z","updated_at":"2025-10-16T21:22:59.518Z","avatar_url":"https://github.com/emalherbi-zz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-php-shield\n\n# Build automatic phpShield/Source Guardian or Encrypt your files in Base 64!\n\n[![NPM](https://nodei.co/npm/grunt-php-shield.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/grunt-php-shield/)\n\nExample: [grunt-php-shield](http://emalherbi.github.io/grunt-php-shield/)\n\n# Getting Started\n\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-php-shield --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-php-shield');\n```\n\n# The \"phpShield\" task\n\n## Overview\n\nIn your project's Gruntfile, add a section named `phpShield` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  phpShield: {\n    base64: {\n      options: {\n        ...\n      },\n      files: [{\n        src: ['**'],\n        dest: 'tmp/app',\n        cwd: 'test/fixtures/app'\n      }]\n    }\n  },\n});\n```\n\n# Usage Examples\n\n## Encryption your files in base64 \u003cbr /\u003e\n\n```js\ngrunt.initConfig({\n  phpShield: {\n    base64: {\n      options: {\n        log : true,\n        base64 : true,\n        encodingLevelStart : 2,\n        encodingLevelEnd : 5,\n        notEncode: [ 'css', 'js', 'img', 'view', 'config', 'index.php' ]\n      },\n      files: [{\n        src: ['**'],\n        dest: 'tmp/app',\n        cwd: 'test/fixtures/app'\n      }]\n    }\n  }\n});\n```\n\n## Or use [phpShield](http://www.phpshield.com/) or [Source Guardian](https://www.sourceguardian.com/) \u003cbr /\u003e\n\n[1] - Sometimes is necessary to use a real path on your destination for phpShield. \u003cbr/\u003e\n\n```js\ngrunt.initConfig({\n  phpShield: {\n    shield: {\n      options: {\n        path_exe: 'D:\\\\PHPShield\\\\encoder',\n        log : false,\n        V4_0 : false, // phpshield\n        V5_0 : false, // phpshield\n        V5_2 : false, // phpshield\n        V5_3 : false, // phpshield\n        V5_4 : false, // source guardian\n        V5_5 : false, // source guardian\n        V5_6 : false, // source guardian\n        V7_0 : false, // source guardian\n        V7_1 : false, // source guardian\n        V7_2 : false, // source guardian\n        stop_on_error : false,\n        strict_errors : false,\n        is_source_guardian: false\n      },\n      files: [{\n        src: ['**'],\n        dest: 'D:\\\\www\\\\tmp\\\\app', // [1]\n        cwd: 'test/fixtures/app'\n      }]\n    }\n  }\n});\n```\n\n# Options\n\n## options.log\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled log.\n\n# Options (Base64)\n\n## options.base64\nType: `Boolean` \u003cbr/\u003e\nDefault value: `false`\n\nA Boolean value that is used to especific if it is base64 encryption.\n\n## options.encodingLevelStart\nType: `Number` \u003cbr/\u003e\nDefault value: 0\n\nA Number value that is used to especific how often the encryption will be made.\n\n## options.encodingLevelEnd\nType: `Number` \u003cbr/\u003e\nDefault value: 0\n\nA Number value that is used to especific how often the encryption will be made.\n\n## options.notEncode\nType: `Array` \u003cbr/\u003e\nDefault value: null\n\nA Array value that is used to especific what's files/folders not encode.\n\n# Options (PhpShield)\n\n## options.path_exe\nType: `String` \u003cbr/\u003e\nDefault value: ``\n\nA string value that is used to especific path .exe.\n\n## options.V4_0\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 4.\n\n## options.V5_0\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 5.0.\n\n## options.V5_2\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 5.2.\n\n## options.V5_3\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 5.3.\n\n## options.V5_4\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 5.4.\n\n## options.V5_5\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 5.5.\n\n## options.V5_6\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 5.6.\n\n## options.V7_0\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 7.0.\n\n## options.V7_1\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 7.1.\n\n## options.V7_2\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to enabled compiling php version 7.2.\n\n## options.stop_on_error\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to stop on script compiling errors.\n\n## options.strict_errors\nType: `Boolean` \u003cbr/\u003e\nDefault value: `true`\n\nA Boolean value that is used to report E_STRICT compiling errors.\n\n# Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femalherbi-zz%2Fgrunt-php-shield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femalherbi-zz%2Fgrunt-php-shield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femalherbi-zz%2Fgrunt-php-shield/lists"}