{"id":18994913,"url":"https://github.com/wevre/wcommon","last_synced_at":"2026-04-15T22:30:16.464Z","repository":{"id":27107856,"uuid":"30575468","full_name":"wevre/wCommon","owner":"wevre","description":"Common code for templates, forms, and page elements","archived":false,"fork":false,"pushed_at":"2019-12-23T04:48:22.000Z","size":205,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T15:43:33.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/wevre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-10T04:50:48.000Z","updated_at":"2019-12-23T04:41:12.000Z","dependencies_parsed_at":"2022-08-19T18:41:42.274Z","dependency_job_id":null,"html_url":"https://github.com/wevre/wCommon","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2FwCommon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2FwCommon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2FwCommon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2FwCommon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wevre","download_url":"https://codeload.github.com/wevre/wCommon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240010337,"owners_count":19733514,"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":[],"created_at":"2024-11-08T17:27:34.070Z","updated_at":"2026-04-15T22:30:16.402Z","avatar_url":"https://github.com/wevre.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wCommon\n\nCommon code for templates, forms, and page elements.\n\n## wStandard\n\nFunctions for handling errors, managing URL's, string and date manipulations, and custom HTML elements.\n\n## HTMLComposer\n\nAn object for constructing HTML, keeping track of and closing elements as they are added to the pile.\n\n## Template\n\nSubclass of HTML\\_Template\\_Sigma that adds useful features.\n\n## FormBuilder\n\nClass for handling the building and processing of HTML forms.\n\n# Using wCommon\u0026mdash;A very quick guide\n\nThe following are very high level steps (read: bare minimum steps) to setting up a simple blog-like website that uses wCommon and dStruct.\n\n1. Set up a server with Apache, PHP and MySQL. Using PEAR, install HTML\\_Template\\_Sigma.\n2. Install wCommon and dStruct on your server, typically in `/usr/share/php`. Adjust PHP's `include_path` to point to this location.\n3. Copy the files from the `sample` folder to some location reachable by Apache and set the DocumentRoot to the `www` folder.\n4. Create a database and run the statements in `struct.sql` to create the proper dStruct tables.\n5. Create a user with permissions for that database, and capture those credentials inside `inc-standard.php`.\n6. After editing some internal parameters, run the script `create-user.php` to create an admin user.\n7. At this point you should have a working website that displays posts. You can log in as the admin and create, edit, and delete posts and also upload images and other documents.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwevre%2Fwcommon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwevre%2Fwcommon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwevre%2Fwcommon/lists"}