Download the PHP package switchcat/periodic without Composer
On this page you can find all versions of the php package switchcat/periodic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package periodic
SwitchCat/periodic
Table of Contents
- Getting Started
- Prerequisites
- Dependencies
- Installation
- Usage
- Contributing
- License
- Contact
- Acknowledgements
Getting Started
- Prerequisites
- Dependencies
- Installation
To get a local copy up and running follow these simple steps.
Prerequisites
- PHP7.4+
- Composer
Dependencies
Installation
Use composer from the root of your project folder to download the library.
Usage
All method return an array containing either the element's data either an array of elements with their data.
-
Create the periodic object
-
Get all elements from the periodic table
-
Get an element by name
-
Get an element by symbol
-
Get an element by number
-
Get an element by category
-
Get a collection of elements by atomic mass range
-
Get an element by phase
-
Get a collection of elements by melting point range
-
Get a collection of elements by boiling point range
- Get a collection of elements by density range
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Based on the work of Bowserinator/Periodic-Table-JSON
Periodic-Table-JSON
A json of the entire periodic table. Feel free to use it in your projects.
Temperatures such as boiling points and melting points are given in degrees kelvin. Densities are given in g/l for gases and g/cm³ for solids and liquids and molar heat in (mol*K). Information that is missing is represented as null. Some elements may have an image link to their spectral bands.
All elements have a three sentence summary from Wikipedia. Currently the color tag is useless, so please use appearance instead.
Electron configuration is given as a string, with each orbital separated by a space. Electron configuration semantic is given as a string, this is the short-hand version of the electron configuration. Elements with a semantic electron configuration marked with a "*" mean that the electron configuration has not yet been confirmed. Electron shells are given as an array, the first item is the number of electrons in the first shell, the 2nd item is the number of electrons in the second shell, and so on.
Both ionization energy and first electron affinities are given as the energy required to detach an electron from the anion. Ionization energies are given as an array for successive ionization energy.
A link to the source where the information was from is provided in each element under the key "source".
Here's an example of how it's formatted: