{"id":21697046,"url":"https://github.com/mvccore/example-translator-portable","last_synced_at":"2025-03-20T14:50:15.930Z","repository":{"id":106805352,"uuid":"164124236","full_name":"mvccore/example-translator-portable","owner":"mvccore","description":"Project skeleton to build/pack MvcCore Pig-Latin Translator example.","archived":false,"fork":false,"pushed_at":"2024-12-16T14:08:43.000Z","size":1097,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T14:12:47.208Z","etag":null,"topics":["building","example","mvccore","packing","pig-latin","portable","portable-skeleton","single-file","skeleton","translator"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvccore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-04T15:33:32.000Z","updated_at":"2024-12-16T14:01:26.000Z","dependencies_parsed_at":"2024-04-13T00:22:20.514Z","dependency_job_id":"deab515c-f0ec-48d2-ae7e-3fdbff63c039","html_url":"https://github.com/mvccore/example-translator-portable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvccore%2Fexample-translator-portable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvccore%2Fexample-translator-portable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvccore%2Fexample-translator-portable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvccore%2Fexample-translator-portable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvccore","download_url":"https://codeload.github.com/mvccore/example-translator-portable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244637055,"owners_count":20485444,"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":["building","example","mvccore","packing","pig-latin","portable","portable-skeleton","single-file","skeleton","translator"],"created_at":"2024-11-25T19:23:17.020Z","updated_at":"2025-03-20T14:50:15.893Z","avatar_url":"https://github.com/mvccore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MvcCore - Example - Pig-Latin Translator For Portable Packing\n\n[![Latest Stable Version](https://img.shields.io/badge/Stable-v5.3.0-brightgreen.svg?style=plastic)](https://github.com/mvccore/example-translator-portable/releases)\n[![License](https://img.shields.io/badge/License-BSD%203-brightgreen.svg?style=plastic)](https://mvccore.github.io/docs/mvccore/5.0.0/LICENSE.md)\n[![Packager Build](https://img.shields.io/badge/Packager%20Build-passing-brightgreen.svg?style=plastic)](https://github.com/mvccore/packager)\n![PHP Version](https://img.shields.io/badge/PHP-\u003e=5.4-brightgreen.svg?style=plastic)\n\nSkeleton for MvcCore [Pig-Latin Translator (`mvccore/example-translator`)](https://github.com/mvccore/example-translator) example portable packing/building.\n\n## Instalation\n```shell\n# load translator portable project skeleton\ncomposer create-project mvccore/example-translator-portable ./my-translator\n\n# go to portable project skeleton directory\ncd my-translator\n\n# load translator project\ncomposer create-project mvccore/example-translator ./development\n```\n\n## Packed Result Features\n\n- **Result** is **completelly portable** - `./example-translator-portable/release/index.php`\n- Result application is **currently packed in strict package mode**\n- All packing configurations are included in `./build/configs` directory\n- Packed with [**Packager library - mvccore/packager**](https://github.com/mvccore/packager)), all packing ways possible:\n  - **PHAR file**\n    - standard PHAR package with whole development directory content\n  - **PHP file**\n    - **strict package**\n      - everything is contained in result `index.php`\n      - only `.htaccess` or `web.config` are necessary to use mod_rewrite\n    - **preserve package**\n      - result `index.php` file contains PHP files, \n        PHTML templates but no CSS/JS/fonts or images\n      - all wrapped file system functions are looking inside \n        package first, then they try to read data from HDD\n    - **preserve hdd**\n      - result `index.php` file contains PHP files, \n        PHTML templates but no CSS/JS/fonts or images\n      - all wrapped file system functions are looking on HDD first, \n        then they try to read data from package itself\n    - **strict hdd**\n      - result `index.php` file contains only PHP files, \n        but PHTML templates, all CSS/JS/fonts and images are on HDD\n      - no PHP file system function is wrapped\n\n## Build\n\n### 1. Prepare Application\n- go to `./my-translator/development`\n- clear everything in `./Var/Tmp/`\n- uncomment `-\u003eSetCompiled(\\MvcCore\\Application::COMPILED_SFU)` in `./index.php`\n- visit all application routes where are different JS/CSS bundles \n  groups to generate `./Var/Tmp/` content for result app\n- run build process\n\n### 2. Run Build Process\n\n#### Linux:\n```shell\n# go to project build dir\ncd ./my-translator/build\n# run build process into single PHP file\nsh make.sh\n```\n\n#### Windows:\n```shell\n# go to project build dir\ncd ./my-translator/build\n# run build process into single PHP file\nmake.cmd\n```\n\n#### Browser:\n```shell\n# visit script `make-php.php` in your project build directory:\nhttp://localhost/my-translator/build/make-php.php\n# now run your result in:\nhttp://localhost/my-translator/release/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvccore%2Fexample-translator-portable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvccore%2Fexample-translator-portable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvccore%2Fexample-translator-portable/lists"}