- Notifications
You must be signed in to change notification settings - Fork0
A template for an admin panel built with PHP and Materialize. The template comes with Google Analytics and Uptime Robot APIs built in, along with a functioning login system.
License
Timur-O/MaterializePHPAdminPanelTemplate
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A template for an admin panel built with PHP and Materialize. The template comes with Google Analytics and Uptime Robot APIs built in, but still requires a database connection for the login system and user management system.
Screenshot Link:https://imgur.com/a/h6vKnkc
- Google Analytics API for Analytics
- Uptime Robot API for Site Status Monitoring
- Pre-built template for user management
- If you downloaded the release you can skip this step, otherwise run
composer installonce in the root directory of the template - To decrease amount of files in dependency go to
vendor/google/apiclient-services/src/Google/Serviceand delete all files except: the Analytics and AnalyticsReporting folders and the Analytics.php and AnalyticsReporting.php files. This will decrease the amount of files from ~12,000 to ~600.
In order for the template to work, a file needs to be present in the root of the template files. This file is calledclient_secrects.json. This file can be found by doing the following:
- Go to this page:https://console.developers.google.com/apis/credentials
- Click Create credentials and select OAuth client ID
- For the Application type select Web application
- Name the client ID whatever you like and click Create
- Leave the Authorized JavaScript origins blank
- Set the Authorized redirect URIs tohttp://yourdomain.tld/path/to/oauth2callback.php
- Click Create
- On the Credentials page click the newly created client ID, click Download JSON and save it as
client_secrets.jsonin the root of the template files
In order to access status updates from uptime robot an API Key is needed. This can be found by doing the following:
- Log into your uptime robot account
- Click my settings and find where it says Read-Only API Key (Must be read-only because the key will be exposed in the Javascript)
- Copy the API Key and paste it into the config.php file where it says
$uptimeKey
- Go to google analytics and click on Admin
- Under view click on view settings and at the top it should say view id
- Copy this number and in the config.php file past it where it says
$analyticsViewIDin the second quotation marks after thega:. If you get an error make sure$analyticsViewIDis equal toga:YOURID
- Add your database details in the config.php file
- Make sure the password hashes in the database are generated with
password_hash()with PHP
- Add your twitter handle - if you don't want to show a twitter feed, go to the index.php file and delete the div with the class twitterFeed.
- Add a link to an RSS feed you want to show- if you don't want to show a RSS feed, go to the index.php file and delete the div with the class rssFeed.
- Change the
$rootOfFilesvariable depending on the location of the admin panel files. If in the root of a domain - eg. htdocs folder, then simply leave the variable as an empty string. Otherwise add the a forward slash and the folder name - eg. if the files are in the admin folder then the variable should be/admin.
About
A template for an admin panel built with PHP and Materialize. The template comes with Google Analytics and Uptime Robot APIs built in, along with a functioning login system.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.