{"id":15296236,"url":"https://github.com/mcdanci/thnkphp-ext","last_synced_at":"2026-01-06T02:06:15.153Z","repository":{"id":62526052,"uuid":"125167190","full_name":"mcdanci/thnkphp-ext","owner":"mcdanci","description":"ThinkPHP extension.","archived":false,"fork":false,"pushed_at":"2018-03-23T01:14:41.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T05:26:33.264Z","etag":null,"topics":["php","php5","php7","php71","thinkphp","thinkphp-php","thinkphp5"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcdanci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-14T06:40:52.000Z","updated_at":"2022-02-12T12:37:15.000Z","dependencies_parsed_at":"2022-11-02T14:02:35.275Z","dependency_job_id":null,"html_url":"https://github.com/mcdanci/thnkphp-ext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdanci%2Fthnkphp-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdanci%2Fthnkphp-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdanci%2Fthnkphp-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdanci%2Fthnkphp-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcdanci","download_url":"https://codeload.github.com/mcdanci/thnkphp-ext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245407755,"owners_count":20610232,"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":["php","php5","php7","php71","thinkphp","thinkphp-php","thinkphp5"],"created_at":"2024-09-30T18:09:48.746Z","updated_at":"2026-01-06T02:06:15.114Z","avatar_url":"https://github.com/mcdanci.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThinkPHP Extension\nThinkPHP extension.\n\nComponent List:\n- Log Driver for Database\n\n## Log Driver for Database\nUsage Steps:\n1. New a migrate.\n2. New a model (*optional*).\n\n---\nNew a migrate:\n``` php\nclass CreateLogTable extends \\McDanci\\ThinkPHP\\database\\migrates\\CreateLogTable\n{\n}\n```\n\n---\nNew a model:\n``` php\nnamespace app\\common\\model;\n\nclass Log extends \\McDanci\\ThinkPHP\\app\\common\\model\\Log\n{}\n```\n\n---\nCall:\n``` php\nuse think\\Log;\n\nLog::init(['type' =\u003e '\\McDanci\\ThinkPHP\\Driver\\Log\\DB']);\nLog::record('String', Log::LOG);\nLog::record(['String too'], Log::LOG);\nLog::record(['String with extra', 'Extra information'], Log::LOG);\n```\n\n## Note\nFront-end web resources for ThinkPHP is recommended to be located in the path of `./public/static` according to the root of project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdanci%2Fthnkphp-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcdanci%2Fthnkphp-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdanci%2Fthnkphp-ext/lists"}