{"id":23450252,"url":"https://github.com/byte-bandit/browsergame","last_synced_at":"2025-04-10T05:55:55.630Z","repository":{"id":146465262,"uuid":"20855079","full_name":"byte-bandit/browsergame","owner":"byte-bandit","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-06T10:43:16.000Z","size":2587,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T19:24:24.306Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byte-bandit.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}},"created_at":"2014-06-15T12:36:26.000Z","updated_at":"2022-02-06T10:42:51.000Z","dependencies_parsed_at":"2023-07-17T16:53:30.331Z","dependency_job_id":null,"html_url":"https://github.com/byte-bandit/browsergame","commit_stats":null,"previous_names":["byte-bandit/browsergame"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-bandit%2Fbrowsergame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-bandit%2Fbrowsergame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-bandit%2Fbrowsergame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byte-bandit%2Fbrowsergame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byte-bandit","download_url":"https://codeload.github.com/byte-bandit/browsergame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166930,"owners_count":21058480,"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-12-23T23:35:19.596Z","updated_at":"2025-04-10T05:55:55.606Z","avatar_url":"https://github.com/byte-bandit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"browsergame\n===========\nTo successfully run the application, you will need to create a file 'app/Config/database.php' with the following content:\n\n```\n\u003c?php\nclass DatabaseConfig\n{\n    public static $default = array(\n        'host'     =\u003e 'ADDRESS_OF_YOUR_DATABASE_HOST',\n        'username' =\u003e 'DATABASE_USER_NAME',\n        'password' =\u003e 'DATABASE_USER_PASSWORD',\n        'database' =\u003e 'DATABASE_NAME',\n    );\n}\n```\n\nSQL Syntax\n==========\nYou will need a database with the following content:\n\n```\n-- phpMyAdmin SQL Dump\n-- version 3.4.10.1deb1\n-- http://www.phpmyadmin.net\n--\n-- Host: localhost\n-- Generation Time: Jun 15, 2014 at 02:44 PM\n-- Server version: 5.5.37\n-- PHP Version: 5.3.10-1ubuntu3.11\n\nSET SQL_MODE=\"NO_AUTO_VALUE_ON_ZERO\";\nSET time_zone = \"+00:00\";\n\n--\n-- Database: `bgame`\n--\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `players`\n--\n\nCREATE TABLE IF NOT EXISTS `players` (\n  `player_id` int(11) NOT NULL AUTO_INCREMENT,\n  `username` varchar(25) NOT NULL,\n  `password` varchar(130) NOT NULL,\n  `email` varchar(255) NOT NULL,\n  `level` int(11) NOT NULL DEFAULT '1',\n  `exp` int(11) NOT NULL DEFAULT '0',\n  `expNext` int(11) NOT NULL DEFAULT '0',\n  PRIMARY KEY (`player_id`),\n  UNIQUE KEY `id_UNIQUE` (`player_id`),\n  UNIQUE KEY `username_UNIQUE` (`username`)\n) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `player_stats`\n--\n\nCREATE TABLE IF NOT EXISTS `player_stats` (\n  `player_id` int(11) NOT NULL,\n  `stat_id` int(11) NOT NULL,\n  `value` varchar(20) COLLATE latin1_german1_ci NOT NULL DEFAULT '0',\n  KEY `playerStats` (`player_id`),\n  KEY `statStats` (`stat_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `player_train_logs`\n--\n\nCREATE TABLE IF NOT EXISTS `player_train_logs` (\n  `player_id` int(11) NOT NULL,\n  `created` int(11) NOT NULL,\n  KEY `playerTrainLogs_idx` (`player_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `stats`\n--\n\nCREATE TABLE IF NOT EXISTS `stats` (\n  `stat_id` int(11) NOT NULL AUTO_INCREMENT,\n  `short` varchar(15) DEFAULT NULL,\n  PRIMARY KEY (`stat_id`)\n) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;\n\n-- --------------------------------------------------------\n\n--\n-- Table structure for table `warehouse`\n--\n\nCREATE TABLE IF NOT EXISTS `warehouse` (\n  `item_id` int(11) NOT NULL,\n  `player_id` int(11) NOT NULL,\n  `quantity` int(11) NOT NULL DEFAULT '1',\n  KEY `playerItems_idx` (`player_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;\n\n--\n-- Constraints for dumped tables\n--\n\n--\n-- Constraints for table `player_stats`\n--\nALTER TABLE `player_stats`\n  ADD CONSTRAINT `playerStats` FOREIGN KEY (`player_id`) REFERENCES `players` (`player_id`) ON DELETE CASCADE ON UPDATE NO ACTION,\n  ADD CONSTRAINT `statStats` FOREIGN KEY (`stat_id`) REFERENCES `stats` (`stat_id`) ON DELETE CASCADE ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `player_train_logs`\n--\nALTER TABLE `player_train_logs`\n  ADD CONSTRAINT `playerTrainLogs` FOREIGN KEY (`player_id`) REFERENCES `players` (`player_id`) ON DELETE NO ACTION ON UPDATE NO ACTION;\n\n--\n-- Constraints for table `warehouse`\n--\nALTER TABLE `warehouse`\n  ADD CONSTRAINT `userItems` FOREIGN KEY (`player_id`) REFERENCES `players` (`player_id`) ON DELETE CASCADE ON UPDATE NO ACTION;\n\n--\n-- Add default values for stats\n--\nINSERT INTO `stats` (`stat_id`, `short`) VALUES\n(1, 'health'),\n(2, 'health_max'),\n(3, 'energy'),\n(4, 'energy_max'),\n(5, 'str'),\n(6, 'dex'),\n(7, 'int'),\n(8, 'money'),\n(9, 'f_weap'),\n(10, 's_weap'),\n(11, 'helmet'),\n(12, 'armour'),\n(13, 'gloves'),\n(14, 'boots'),\n(15, 'pet');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyte-bandit%2Fbrowsergame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyte-bandit%2Fbrowsergame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyte-bandit%2Fbrowsergame/lists"}