{"id":21846128,"url":"https://github.com/owenvoke/vs-framework","last_synced_at":"2026-06-14T21:32:35.862Z","repository":{"id":105015011,"uuid":"88799143","full_name":"owenvoke/vs-framework","owner":"owenvoke","description":"A video site project written in PHP.","archived":false,"fork":false,"pushed_at":"2017-05-24T21:24:09.000Z","size":130,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-08-13T19:05:13.870Z","etag":null,"topics":["hosting","php","server","video","vs-framework"],"latest_commit_sha":null,"homepage":"http://192.168.69.69","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/owenvoke.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-19T23:12:55.000Z","updated_at":"2018-01-14T13:51:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1fc5158-de9b-40ff-b28f-adb47ccb012d","html_url":"https://github.com/owenvoke/vs-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/owenvoke/vs-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fvs-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fvs-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fvs-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fvs-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owenvoke","download_url":"https://codeload.github.com/owenvoke/vs-framework/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenvoke%2Fvs-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34339194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":["hosting","php","server","video","vs-framework"],"created_at":"2024-11-27T23:12:57.592Z","updated_at":"2026-06-14T21:32:35.846Z","avatar_url":"https://github.com/owenvoke.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vs/framework\n\n## Installation\n1. Clone via Git with `git clone https://github.com/PXgamer/vs-framework`\n2. Run `composer install` in the root directory\n3. Run the SQL code (`resources/dump.sql`)\n4. That's all, you should now be able to browse to your chosen URL (Example: `php -S localhost:69`, then browse to [localhost:69](https://localhost:69)\n\n## Creating a module\n\nModules are what VS uses to add additional routes to the framework. There are a few steps to doing this:\n\n**Routes class**  \nEach module requires a `Routes` class under the module namespace, for example with the Api module, this is: `\\VS\\Api\\Routes`.  \nThis must extend the `VS\\Framework\\Routing\\PluginRoute` class.  \nRoutes are defined using [`nezamy/route`][nezamy/route] as follows:  \n\n```php\n$Route-\u003eany('/', ['{controller_class}', '{method}']);\n```\n\n**Controller classes**  \nControllers should be located under a folder named `src/Controller`.  \nThese must extend the `\\VS\\Framework\\Controller\\Controller` class which enabled usage of Smarty and the database.\n\nUsing Smarty from within a controller is as simple as using `$this-\u003esmarty`, for example:\n```php\n$this-\u003esmarty-\u003edisplay(\n    '{template}.tpl',\n    [\n        'variable' =\u003e 'value'\n    ]\n);\n```\n\nYou can also use the \\PDO functions from `$this-\u003edb` such as:\n```php\n$this-\u003edb-\u003equery('SELECT * FROM users');\n```\n\nAlso available is the `Account` class from `$this-\u003euser` which allows you to use functions such as:\n```php\n$this-\u003euser::auth();\n$this-\u003euser::user($key);\n$this-\u003euser-\u003elogin($username, $password);\n$this-\u003euser-\u003elogout();\n$this-\u003euser-\u003eregister($data);\n```\n\n## Available modules\n\nModules are installed by running `composer install {module_name}`.\n\n- [`vs/framework`][module/framework] - The base framework for the VS site (required).\n- [`vs/api`][module/api] - The API module for VS.\n\n[module/framework]: https://github.com/PXgamer/vs-framework\n[module/api]: https://github.com/PXgamer/vs-api\n[nezamy/route]: https://packagist.org/packages/nezamy/route\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Fvs-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowenvoke%2Fvs-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenvoke%2Fvs-framework/lists"}