{"id":18247049,"url":"https://github.com/thyseus/yii2-banner","last_synced_at":"2025-04-08T19:35:26.127Z","repository":{"id":141909603,"uuid":"91453647","full_name":"thyseus/yii2-banner","owner":"thyseus","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-06T08:25:10.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T15:17:17.114Z","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/thyseus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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-05-16T12:04:58.000Z","updated_at":"2020-01-14T08:15:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7d18383-45ab-4875-9192-40735c135ec3","html_url":"https://github.com/thyseus/yii2-banner","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/thyseus%2Fyii2-banner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyseus%2Fyii2-banner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyseus%2Fyii2-banner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyseus%2Fyii2-banner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thyseus","download_url":"https://codeload.github.com/thyseus/yii2-banner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912990,"owners_count":21017077,"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-05T09:28:48.353Z","updated_at":"2025-04-08T19:35:26.098Z","avatar_url":"https://github.com/thyseus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ATTENTION:\n\ngithub has been bought by Microsoft. This repository is orphaned and has been moved to:\n\nhttps://gitlab.com/thyseus/yii2-banner\n\nThanks a lot for your understanding and blame Microsoft.\n\n# Yii2-banner\n\nPlace advertisements banners on your Page.\n- Advertisements are valid from startdate to enddate\n- Multiple places where banners can appear\n- Active Banners are placed randomly \n- Uses slugs to identify banners over URL\n- Counts banner visits\n\n## Installation\n\n```bash\n$ composer require thyseus/yii2-banner\n$ php yii migrate/up --migrationPath=@vendor/thyseus/yii2-banner/migrations\n```\n\n## Configuration\n\nAdd following lines to your main configuration file:\n\n```php\n'modules' =\u003e [\n    'banner' =\u003e [\n        'class' =\u003e 'thyseus\\banner\\Module',\n        'allowedRoles' =\u003e ['admin', 'banner'], # which roles are allowed to administrate banners?\n    ],\n],\n```\n\n## Place Banner:\n\nPlace this snippet inside your view where you want the corresponding adspace to appear:\n```php\n\u003c?php\n    echo $this-\u003erender('@vendor/thyseus/yii2-banner/views/banner/_banner', ['adspace' =\u003e 'location_header_top']);\n    echo $this-\u003erender('@vendor/thyseus/yii2-banner/views/banner/_banner', ['adspace' =\u003e 'location_header_right']);\n    echo $this-\u003erender('@vendor/thyseus/yii2-banner/views/banner/_banner', ['adspace' =\u003e 'location_header_bottom']);\n```\n## Actions\n\nThe following Actions are possible:\n\n* admin:  https://your-domain/banner/banner/admin\n* create: https://your-domain/banner/banner/create\n* visit:  https://your-domain/banner/banner/visit/\u003cslug\u003e\n* view:   https://your-domain/banner/banner/view/\u003cslug\u003e\n* update: https://your-domain/banner/banner/update/\u003cslug\u003e\n* delete: https://your-domain/banner/banner/delete/\u003cslug\u003e\n\n## Contributing to this project\n\nAnyone and everyone is welcome to contribute.\n\n## License\n\nYii2-banner is released under the GPLv3 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthyseus%2Fyii2-banner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthyseus%2Fyii2-banner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthyseus%2Fyii2-banner/lists"}